Protocol

package
v0.0.0-...-8a14603 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgTypeList = []string{"audio", "video", "text", "image", "conf"}

Functions

This section is empty.

Types

type Contact

type Contact struct {
	// contains filtered or unexported fields
}

type Message

type Message struct {
	// contains filtered or unexported fields
}

func CreateMsg

func CreateMsg(msgBody, sender, receiver, msgType string, msgCreateTime time.Time, msgMeta map[string]string) *Message

func (*Message) GetMsgBody

func (msg *Message) GetMsgBody() string

func (*Message) GetMsgCreateTime

func (msg *Message) GetMsgCreateTime() time.Time

func (*Message) GetMsgMeta

func (msg *Message) GetMsgMeta() map[string]string

func (*Message) GetMsgType

func (msg *Message) GetMsgType() string

func (*Message) GetReceiver

func (msg *Message) GetReceiver() string

func (*Message) GetSender

func (msg *Message) GetSender() string

Jump to

Keyboard shortcuts

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