Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatInfo ¶
type ChatInfo struct {
ID ID
Name string
Members []Contact
Type ChatType
Unread uint64
LatestText string
Admins []Contact
}
func NewGroupChat ¶ added in v0.3.0
func NewPrivateChat ¶ added in v0.3.0
func ToChatInfo ¶ added in v0.3.0
type Envelop ¶ added in v0.1.0
type Envelop struct {
To Contact
Message ProtoMessage
ID string
CreatedAt int64
Protocol protocol.ID
}
func NewMessageEnvelop ¶ added in v0.3.0
type Identity ¶
func CreateIdentity ¶
func (*Identity) DecodePrivateKey ¶
DecodePrivateKey is a helper to decode the users PrivateKey
type Message ¶
type ProtoMessage ¶ added in v0.3.0
type PubSubEnvelop ¶ added in v0.3.0
type PubSubEnvelop struct {
Topic string
Message ProtoMessage
}
Click to show internal directories.
Click to hide internal directories.