Documentation ¶ Index ¶ type Client func NewClient(appId string, brokers []string) *Client func (c *Client) PublishOfflineMsg(ctx context.Context, fromId string, b []byte) error type Msg func (m *Msg) Data() ([]byte, error) 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) Source Files ¶ View all Source files client.go msg.go Directories ¶ Show internal Expand all Path Synopsis cmd push etc Click to show internal directories. Click to hide internal directories.