Versions in this module Expand all Collapse all v1 v1.1.0 Feb 8, 2024 Changes in this version + const TransferStatusFailed + const TransferStatusInProgress + const TransferStatusPending + const TransferStatusSent + type AndroidAction struct + Deeplink string + func NewAndroidOpenAction(deeplink string) *AndroidAction + type AndroidContent struct + Banner string + ChannelID string + CollapseKey int + Data string + Icon string + IconBackground string + Image string + LedColor string + LedInterval int + LedPauseInterval int + Priority int + Text string + TimeToLive int + Title string + Urgency string + Vibration []int + Visibility string + type AndroidMessage struct + Content *AndroidContent + OpenAction *AndroidAction + Silent bool + func NewAndroidMessage(title string, text string, silent bool) *AndroidMessage + type Attachment struct + FileType string + FileURL string + ID string + type Batch struct + Devices []*Device + Messages *Message + func NewBatch() *Batch + type Client interface + ArchiveGroup func(id int) error + CreateGroup func(group *Group) (*Group, error) + GetGroup func(id int) (*Group, error) + GetGroups func(appId int) ([]*Group, error) + GetStatusByClientTransferId func(groupId int, clientTransferId int64) (*Transfer, error) + GetStatusByTransferId func(transferId int) (*Transfer, error) + RestoreGroup func(id int) error + SendPush func(r *PushBatchRequest) (*PushResponse, error) + UpdateGroup func(id int, group *Group) (*Group, error) + func NewClient(token string) Client + type Device struct + IDType string + IDValues []string + func NewDevice(idType string, idValues ...string) *Device + type Error struct + ErrorType string + Message string + type Group struct + AppId int + ID int + Name string + SendRate int + func NewCreateGroupRequest(appId int, name string) *Group + func NewUpdateGroupRequest(name string) *Group + type IOSAction struct + URL string + func NewIOSOpenAction(url string) *IOSAction + type IOSContent struct + Attachments []*Attachment + Badge int + Category string + CollapseID string + Data string + Expiration int + MutableContent int + Sound string + Text string + ThreadID string + Title string + type IOSMessage struct + Content *IOSContent + OpenAction *IOSAction + Silent bool + func NewIOSMessage(title string, text string, silent bool) *IOSMessage + type Message struct + Android *AndroidMessage + IOS *IOSMessage + type PushBatchRequest struct + Batch []*Batch + ClientTransferID int64 + GroupID int + Tag string + func NewPushBatchRequestBody(groupId int, tag string) *PushBatchRequest + type PushResponse struct + ClientTransferId int64 + TransferId int + type Transfer struct + ClientTransferId *int64 + CreationDate string + Errors []string + GroupId int + ID int + Status string + Tag string