getui

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *Config) (push.Push, error)

Types

type Config

type Config struct {
	AppID        string `yaml:"app_id"`
	AppKey       string `yaml:"app_key"`
	MasterSecret string `yaml:"master_secret"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Endpoints

type Endpoints struct {
	sync.Mutex

	GetTokenEndpoint   endpoint.Endpoint
	PushNoticeEndpoint endpoint.Endpoint
	// contains filtered or unexported fields
}

type GETUI

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

func (*GETUI) PushNotice

func (p *GETUI) PushNotice(ctx context.Context, message *push.Message) error

type Token

type Token struct {
	ExpireTime int64  `json:"expire_time"`
	Token      string `json:"token"`
}

Jump to

Keyboard shortcuts

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