vivo

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: 17 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 {
	AppID     string `yaml:"app_id"`
	AppKey    string `yaml:"app_key"`
	AppSecret string `yaml:"app_secret"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Endpoints

type Endpoints struct {
	GetTokenEndpoint   endpoint.Endpoint
	PushNoticeEndpoint endpoint.Endpoint
	// contains filtered or unexported fields
}

type Token

type Token struct {
	AccessToken string
	ExpiresIn   int64
}

type VIVO

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

func (*VIVO) PushNotice

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

Jump to

Keyboard shortcuts

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