Versions in this module Expand all Collapse all v1 v1.0.0 Jul 5, 2017 Changes in this version + func NewError(resp *http.Response) error + type AndroidSetting struct + CollapseKey string + DelayWhileIdle bool + TimeToLive int + type Client struct + Endpoint *url.URL + HTTPClient *http.Client + func NewClient(endpoint string, cli *http.Client) (*Client, error) + func (cli *Client) Push(c context.Context, p *Payload) error + func (cli *Client) PushMulti(c context.Context, ps ...*Payload) error + type Error struct + Response gaurun.ResponseGaurun + StatusCode int + func (err *Error) Error() string + type Extend gaurun.ExtendJSON + type IOSSetting struct + Badge int + ContentAvailable bool + Expiry int + Extend []*Extend + MutableContent bool + Retry int + Sound string + type Notification struct + ID uint64 + Message string + Platform Platform + Tokens []string + type Payload struct + Notifications []*Notification + type Platform int + const PlatformAndroid + const PlatformIOS