Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfConfig ¶
type CfConfig struct {
ID string `json:"id"`
Token string `json:"token"`
Config struct {
ClientID string `json:"client_id"`
Peers []struct {
PublicKey string `json:"public_key"`
Endpoint struct {
Host string `json:"host"`
} `json:"endpoint"`
} `json:"peers"`
Interface struct {
Addresses struct {
V4 string `json:"v4"`
V6 string `json:"v6"`
} `json:"addresses"`
} `json:"interface"`
} `json:"config"`
}
See example/cloudflare.json
type RegisterRequest ¶
type RegisterRequest struct {
FCMToken string `json:"fcm_token"`
InstallID string `json:"install_id"`
Key string `json:"key"`
Locale string `json:"locale"`
Model string `json:"model"`
TOS string `json:"tos"`
Type string `json:"type"`
}
Build register request
type Uint8Array ¶
type Uint8Array []uint8
go 会自动将 []uint 编码为 base64
func (Uint8Array) MarshalJSON ¶
func (a Uint8Array) MarshalJSON() ([]byte, error)
type UpdateDeviceRequest ¶
Build UpdateDevice Request
Click to show internal directories.
Click to hide internal directories.