notify

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 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"`
	Platform  []string `yaml:"platform"`
}

func (*FcmConf) NewPushServ

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

type PushDI

type PushDI interface {
	NewPushServ() PushServ
}

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