events

package
v0.0.0-...-d095de2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnpackClientSettingUpdate

func UnpackClientSettingUpdate(data []byte, context tlj.TLJContext) interface{}

func UnpackFriendRequest

func UnpackFriendRequest(data []byte, context tlj.TLJContext) interface{}

func UnpackRevokeDevice

func UnpackRevokeDevice(data []byte, context tlj.TLJContext) interface{}

Types

type Address

type Address string

type ClientSettingUpdate

type ClientSettingUpdate struct {
}

type ContactUpdate

type ContactUpdate struct {
	ReplicatedEvent
	DisplayName string `json:omitempty`
	Image       []byte `json:omitempty`
}

Any time a user changes their display name or image this struct is Broadcast to all known Contacts

type DeviceGroupAddress

type DeviceGroupAddress string

type FriendRequest

type FriendRequest struct {
	ReplicatedEvent
	Name string
}

type ReplicatedEvent

type ReplicatedEvent struct {
	Destination UUID
	UUID        string
	Receivedby  []Address
	CreatedAt   string
	CreatedBy   Address `json:omitempty`
	Signature   string  `json:omitempty`
}

type RevokeDeviceEvent

type RevokeDeviceEvent struct {
	ReplicatedEvent
	RevokedAddress Address
}

type TextMessage

type TextMessage struct {
	ReplicatedEvent
	DestinationThread string
}

type ThreadIntroducer

type ThreadIntroducer struct {
	ReplicatedEvent
	UUID               string
	MemberDeviceGroups [][]DeviceGroupAddress
}

type UUID

type UUID string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL