Documentation
¶
Index ¶
- Constants
- type Alert
- type Android
- type Audience
- type AuthReq
- type AuthResp
- type Getui
- func (g *Getui) Auth(operationID string, timeStamp int64) (token string, expireTime int64, err error)
- func (g *Getui) GetTaskID(operationID, token string, pushReq PushReq) (string, error)
- func (g *Getui) GetTaskIDAndSave2Redis(operationID, token string, pushReq PushReq) (taskID string, err error)
- func (g *Getui) Push(userIDList []string, title, detailContent, operationID string, ...) (resp string, err error)
- type GetuiCommonResp
- type HO
- type HW
- type Ios
- type Notification
- type OP
- type Options
- type PushChannel
- type PushMessage
- type PushReq
- type PushResp
- type Settings
- type TaskResp
- type VV
- type XM
Constants ¶
View Source
const ( PushURL = "/push/single/alias" AuthURL = "/auth" TaskURL = "/push/list/message" BatchPushURL = "/push/list/alias" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Android ¶
type Android struct { Ups struct { Notification Notification `json:"notification"` Options Options `json:"options"` } `json:"ups"` }
type Getui ¶
type Getui struct{}
func (*Getui) GetTaskIDAndSave2Redis ¶
type GetuiCommonResp ¶
type HW ¶
type HW struct { Category string `json:"/message/android/category"` DefaultSound bool `json:"/message/android/notification/default_sound"` ChannelID string `json:"/message/android/notification/channel_id"` Sound string `json:"/message/android/notification/sound"` Importance string `json:"/message/android/notification/importance"` }
type Notification ¶
type PushChannel ¶
type PushMessage ¶
type PushMessage struct { Notification *Notification `json:"notification,omitempty"` Transmission *string `json:"transmission,omitempty"` }
type PushReq ¶
type PushReq struct { RequestID *string `json:"request_id"` Settings *Settings `json:"settings"` Audience *Audience `json:"audience"` PushMessage *PushMessage `json:"push_message"` PushChannel *PushChannel `json:"push_channel"` IsAsync *bool `json:"is_async"` Taskid *string `json:"taskid"` }
Click to show internal directories.
Click to hide internal directories.