Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountOnetimeResponse ¶
type CountOnetimeResponse struct {
Count int `json:"count"`
}
type EndExchangePayload ¶
type EndExchangePayload struct { Prekey []byte `json:"prekey"` OneTime []byte `json:"onetime,omitempty"` Ephemeral []byte `json:"ephemeral"` InitialData []byte `json:"initial_data"` }
func (*EndExchangePayload) MarshalJSON ¶
func (payload *EndExchangePayload) MarshalJSON() ([]byte, error)
type MessagePayload ¶
type MessagePayload struct {
Data []byte `json:"data"`
}
func (*MessagePayload) MarshalJSON ¶
func (payload *MessagePayload) MarshalJSON() ([]byte, error)
type Payload ¶
type Payload struct {
Variant interface{} `json:"variant"`
}
func (Payload) MarshalJSON ¶
func (*Payload) UnmarshalJSON ¶
type PrekeyRequest ¶
type QueryExchangePayload ¶
type QueryExchangePayload struct{}
func (*QueryExchangePayload) MarshalJSON ¶
func (payload *QueryExchangePayload) MarshalJSON() ([]byte, error)
type SendBundleRequest ¶
type SessionResponse ¶
type StartExchangePayload ¶
type StartExchangePayload struct { Prekey []byte `json:"prekey"` Sig []byte `json:"sig"` OneTime []byte `json:"onetime,omitempty"` }
func (*StartExchangePayload) MarshalJSON ¶
func (payload *StartExchangePayload) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.