push

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FcmConf

type FcmConf struct {
	ServerKey string `yaml:"fcmServerKey"`
	Enable    bool   `yaml:"enable"`
}

func (*FcmConf) NewPushServ

func (conf *FcmConf) NewPushServ() (PushServ, error)

type PushDI

type PushDI interface {
	NewPushServ() (PushServ, error)
}

type PushServ

type PushServ interface {
	Push(tokens []string, title, body string, data map[string]interface{}) (err error, errTokens []string)
}

Jump to

Keyboard shortcuts

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