push

package
v0.0.0-...-d0b798f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	DeviceTokens []string
	Payload      *Payload
}

Message is the message to be pushed

type Payload

type Payload struct {
	BusinessID    string
	Title         string
	Content       string
	CallBack      string
	CallbackParam string
}

Payload is the payload of the message

type Push

type Push interface {
	// PushNotice pushes the message to the devices
	PushNotice(ctx context.Context, message *Message) error
}

Push is the interface for push

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL