Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct {
Name string `json:"name"`
Secret string `json:"secret"`
Members map[string]*User `json:"members"`
}
Chat represents private or channel chat
func DecodeChat ¶
DecodeChat tries to decode binary formatted message in b to Message
func NewChannel ¶
NewChannel creates new channel chat
func (*Chat) ListMembers ¶
ListMembers returns list of members associated to a chat
type Message ¶
type Message struct {
Meta map[string]string `json:"meta"`
Time int64 `json:"time"`
Seq uint64 `json:"seq"`
Text string `json:"text"`
FromUID string `json:"from_uid"`
FromName string `json:"from_name"`
}
Message represents chat message
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
goch
command
|
|
|
internal
|
|
|
broker
Package broker provides chat broker functionality
|
Package broker provides chat broker functionality |
|
ingest
Package ingest provides functionality for updating per chat read models (recent history)
|
Package ingest provides functionality for updating per chat read models (recent history) |
|
pkg
|
|
Click to show internal directories.
Click to hide internal directories.