Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMsg ¶
func CreateMsg(messageType byte) interfaces.IMsg
func UnmarshalMessage ¶
func UnmarshalMessage(data []byte) (interfaces.IMsg, error)
func UnmarshalMessageData ¶
func UnmarshalMessageData(data []byte) (newdata []byte, msg interfaces.IMsg, err error)
Types ¶
type GeneralFactory ¶
type GeneralFactory struct { }
GeneralFactory is used to get around package import loops.
func (GeneralFactory) CreateMsg ¶
func (GeneralFactory) CreateMsg(messageType byte) interfaces.IMsg
func (GeneralFactory) MessageName ¶
func (GeneralFactory) MessageName(Type byte) string
func (GeneralFactory) UnmarshalMessage ¶
func (GeneralFactory) UnmarshalMessage(data []byte) (interfaces.IMsg, error)
func (GeneralFactory) UnmarshalMessageData ¶
func (GeneralFactory) UnmarshalMessageData(data []byte) (newdata []byte, msg interfaces.IMsg, err error)
Click to show internal directories.
Click to hide internal directories.