Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUID ¶
GenerateUID generates an unique identifer suitable to be used by a chat Envelope. The UID is 128-bit number represented in base32, with a dot character separating each 5 digits, prefixed with 0v. For example: "0v5.acis6.788ro.bljvu.prn7k.22d4q".
Types ¶
type Update ¶
type Update struct {
Initial *Inbox `json:"initial"`
Keys *[]string `json:"keys"`
Messages *Messages `json:"messages"`
Create *struct {
Path string `json:"path"`
} `json:"create"`
Delete *struct {
Path string `json:"path"`
} `json:"delete"`
Message *Message `json:"message"`
Read *struct {
Path string `json:"path"`
} `json:"read"`
}
func ParseUpdate ¶
parseUpdate will parse a JSON byte array of a chat-update message into a chat.Update type.
Click to show internal directories.
Click to hide internal directories.