xiaomi

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPushClient

func NewPushClient(cfg *Config) (push.Push, error)

Types

type Config

type Config struct {
	AppPkgName string `yaml:"app_pkg_name"`
	AppSecret  string `yaml:"app_secret"`
	ChannelID  string `yaml:"channel_id"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Endpoints

type Endpoints struct {
	PushNoticeEndpoint endpoint.Endpoint
}

type XIAOMI

type XIAOMI struct {
	// contains filtered or unexported fields
}

func (*XIAOMI) PushNotice

func (p *XIAOMI) PushNotice(ctx context.Context, pushRequest *push.Message) error

Jump to

Keyboard shortcuts

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