Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2016 Changes in this version + const DefaultAvatar + const EClientPersonaStateFlag_DefaultInfoRequest + func ValidAvatar(avatar string) bool + type ClientMsg struct + Body MessageBody + Header *ExtendedClientMsgHdr + Payload []byte + func NewClientMsg(body MessageBody, payload []byte) *ClientMsg + func (c *ClientMsg) GetMsgType() EMsg + func (c *ClientMsg) GetSessionId() int32 + func (c *ClientMsg) GetSourceJobId() JobId + func (c *ClientMsg) GetSteamId() SteamId + func (c *ClientMsg) GetTargetJobId() JobId + func (c *ClientMsg) IsProto() bool + func (c *ClientMsg) Serialize(w io.Writer) error + func (c *ClientMsg) SetSessionId(session int32) + func (c *ClientMsg) SetSourceJobId(job JobId) + func (c *ClientMsg) SetSteamId(s SteamId) + func (c *ClientMsg) SetTargetJobId(job JobId) + type ClientMsgProtobuf struct + Body proto.Message + Header *MsgHdrProtoBuf + func NewClientMsgProtobuf(eMsg EMsg, body proto.Message) *ClientMsgProtobuf + func (c *ClientMsgProtobuf) GetMsgType() EMsg + func (c *ClientMsgProtobuf) GetSessionId() int32 + func (c *ClientMsgProtobuf) GetSourceJobId() JobId + func (c *ClientMsgProtobuf) GetSteamId() SteamId + func (c *ClientMsgProtobuf) GetTargetJobId() JobId + func (c *ClientMsgProtobuf) IsProto() bool + func (c *ClientMsgProtobuf) Serialize(w io.Writer) error + func (c *ClientMsgProtobuf) SetSessionId(session int32) + func (c *ClientMsgProtobuf) SetSourceJobId(job JobId) + func (c *ClientMsgProtobuf) SetSteamId(s SteamId) + func (c *ClientMsgProtobuf) SetTargetJobId(job JobId) + type Deserializer interface + Deserialize func(r io.Reader) error + type IClientMsg interface + GetSessionId func() int32 + GetSteamId func() SteamId + SetSessionId func(int32) + SetSteamId func(SteamId) + type IMsg interface + GetMsgType func() EMsg + GetSourceJobId func() JobId + GetTargetJobId func() JobId + IsProto func() bool + SetSourceJobId func(JobId) + SetTargetJobId func(JobId) + type JobId uint64 + func (j JobId) String() string + type MessageBody interface + GetEMsg func() EMsg + type Msg struct + Body MessageBody + Header *MsgHdr + Payload []byte + func NewMsg(body MessageBody, payload []byte) *Msg + func (m *Msg) GetMsgType() EMsg + func (m *Msg) GetSourceJobId() JobId + func (m *Msg) GetTargetJobId() JobId + func (m *Msg) IsProto() bool + func (m *Msg) Serialize(w io.Writer) error + func (m *Msg) SetSourceJobId(job JobId) + func (m *Msg) SetTargetJobId(job JobId) + type Packet struct + Data []byte + EMsg EMsg + IsProto bool + SourceJobId JobId + TargetJobId JobId + func NewPacket(data []byte) (*Packet, error) + func (p *Packet) ReadClientMsg(body MessageBody) *ClientMsg + func (p *Packet) ReadMsg(body MessageBody) *Msg + func (p *Packet) ReadProtoMsg(body proto.Message) *ClientMsgProtobuf + func (p *Packet) String() string + type Serializable interface + type Serializer interface + Serialize func(w io.Writer) error