mock

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(appId string, brokers []string) *Client

func (*Client) PublishOfflineMsg

func (c *Client) PublishOfflineMsg(ctx context.Context, fromId string, b []byte) error

type Msg

type Msg struct {
	AppId       string
	DeviceType  offlinepush.Device
	Nickname    string
	TargetId    string
	DeviceToken string
}

func (*Msg) Data

func (m *Msg) Data() ([]byte, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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