Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2024 Changes in this version + const DefaultTimeout + type Client struct + func NewClient(cfg *Config) *Client + func (c *Client) Broadcast(ctx context.Context, payload Payload) (resp *ResponseMessage, err error) + func (c *Client) ListCast(ctx context.Context, payload Payload, deviceTokens ...string) (resp *ResponseMessage, err error) + func (c *Client) Unicast(ctx context.Context, payload Payload, deviceToken string) (resp *ResponseMessage, err error) + type Config struct + AppKey string + AppSecret string + ProductionMode bool + Timeout time.Duration + type Data struct + ErrCode string + ErrMessage string + MessageID string + TaskID string + type Payload map[string]interface + type ResponseMessage struct + Ret ReturnState + func (rm *ResponseMessage) Error() error + type ReturnState string + const FailState + const SuccessState