Documentation ¶
Index ¶
- Constants
- func BindSendCommonFlags(flags *pflag.FlagSet, cmd *SendCmd)
- func GetCommand() *cobra.Command
- func NewSendAlertCommand() *cobra.Command
- func NewSendBackgroundCommand() *cobra.Command
- func NewSendRawCommand() *cobra.Command
- type SendAlertCmd
- type SendBackgroundCmd
- type SendCmd
- type SendRawCmd
Constants ¶
View Source
const ( AppIdFlag = "app-id" AppIdDefault = "" AppIdDesc = "app bundle ID" DataStringFlag = "data" DataStringShortFlag = "d" DataStringDefault = "" DataStringDesc = "JSON formatted notification content" DeviceTokenFlag = "device-token" DeviceTokenDefault = "" DeviceTokenDesc = "APNs device token" SandboxFlag = "sandbox" SandboxDefault = false SandboxDesc = "use APNS sandbox endpoint" VerboseFlag = "verbose" VerboseShortFlag = "v" VerboseDefault = false VerboseDesc = "enable verbose logging" )
View Source
const ( AlertTextFlag = "alert-text" AlertTextDefault = "" AlertTextDesc = "alert text" BadgeCountFlag = "badge-count" BadgeCountDefault = 0 BadgeCountDesc = "badge count" SoundNameFlag = "sound-name" SoundNameDefault = "" SoundNameDesc = "sound name" )
View Source
const ( PriorityFlag = "priority" PriorityDefault = "" PriorityDesc = "value for 'apns-priority' header" PushTypeFlag = "push-type" PushTypeDefault = "" PushTypeDesc = "value for 'apns-push-type' header" )
Variables ¶
This section is empty.
Functions ¶
func BindSendCommonFlags ¶
func GetCommand ¶
func NewSendAlertCommand ¶
func NewSendRawCommand ¶
Types ¶
type SendAlertCmd ¶
func (*SendAlertCmd) Run ¶
func (cmd *SendAlertCmd) Run() error
type SendBackgroundCmd ¶
func (*SendBackgroundCmd) Run ¶
func (cmd *SendBackgroundCmd) Run() error
type SendRawCmd ¶
func (*SendRawCmd) Run ¶
func (cmd *SendRawCmd) Run() error
Click to show internal directories.
Click to hide internal directories.