Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelMsg ¶
ChannelMsg - Message in a channel
type JoinChanMsg ¶
JoinChanMsg - Join channel request
type JoinChanRespMsg ¶
JoinChanRespMsg - Join channel response
type ListChansRespMsg ¶
type ListChansRespMsg struct {
Channels []Channel
}
ListChansRespMsg - List channels response
type Msg ¶
type Msg struct { From string // nick of sender, signed by sender Timestamp int64 // timestamp set and signed by sender MsgType string // verb, signed by sender Data []byte // inner data, typically JSON Sig []byte // signature of (From + Timestamp + MsgType + msg) }
Msg - Core message struct for HC messages
type NewChanMsg ¶
NewChanMsg - Create a new channel
type RegisterMsg ¶
type RegisterMsg struct {
Key string // b64 pubkey
}
RegisterMsg - Register a new user/pubkey pair
type RegisterRespMsg ¶
type RegisterRespMsg struct {
Success bool
}
RegisterRespMsg - Registration response message
Click to show internal directories.
Click to hide internal directories.