Documentation ¶
Index ¶
Constants ¶
const ( MsgTypeES = "ES" // Engine Status MsgTypeER = "ER" // Engine Request MsgTypeERPC = "ERPC" // Engine RPC MsgTypeAS = "AS" // Adapter Status MsgTypeARPC = "ARPC" // Adapter RPC MsgTypeIndex = 0 )
Message types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdpRPCMsgType ¶
type AdpRPCMsgType struct { AdpID string ID string Status string Route string URL string Results int At time.Time }
AdpRPCMsgType represents the Engine Adapter Request messages.
func UnmarshalAdpRPCMsg ¶
func UnmarshalAdpRPCMsg(m Message) (*AdpRPCMsgType, error)
UnmarshalAdpRPCMsg converts a Raw Message to an AdpRPCMsgType instance
func (AdpRPCMsgType) Marshal ¶
func (r AdpRPCMsgType) Marshal() ([]byte, error)
Marshal converts a AdpRPCMsgType to a Raw Message.
type AdpStatusMsgType ¶
AdpStatusMsgType represents the Engine Status messages.
func UnmarshalAdpStatusMsg ¶
func UnmarshalAdpStatusMsg(m Message) (*AdpStatusMsgType, error)
UnmarshalAdpStatusMsg converts a Raw Message to an AdpStatusMsgType instance
func (AdpStatusMsgType) Marshal ¶
func (r AdpStatusMsgType) Marshal() ([]byte, error)
Marshal converts a AdpStatusMsgType to a Raw Message.
type EngRPCMsgType ¶
EngRPCMsgType represents the Engine Adapter Request messages.
func UnmarshalEngRPCMsg ¶
func UnmarshalEngRPCMsg(m Message) (*EngRPCMsgType, error)
UnmarshalEngRPCMsg converts a Raw Message to an EngRPCMsgType instance
func (EngRPCMsgType) Marshal ¶
func (r EngRPCMsgType) Marshal() ([]byte, error)
Marshal converts a EngRPCMsgType to a Raw Message.
type EngRequestMsgType ¶
EngRequestMsgType represents the Engine Request messages.
func UnmarshalEngRequestMsg ¶
func UnmarshalEngRequestMsg(m Message) (*EngRequestMsgType, error)
UnmarshalEngRequestMsg converts a Raw Message to an EngRequestMsgType instance
func (EngRequestMsgType) Marshal ¶
func (r EngRequestMsgType) Marshal() ([]byte, error)
Marshal converts a EngRequestMsgType to a Raw Message.
type EngStatusMsgType ¶
EngStatusMsgType represents the Engine Status messages.
func UnmarshalEngStatusMsg ¶
func UnmarshalEngStatusMsg(m Message) (*EngStatusMsgType, error)
UnmarshalEngStatusMsg converts a Raw Message to an EngStatusMsgType instance
func (EngStatusMsgType) Marshal ¶
func (r EngStatusMsgType) Marshal() ([]byte, error)
Marshal converts a EngStatusMsgType to a Raw Message.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message represents a Raw tatus Message (i.e. text).
func NewMessage ¶
NewMessage converts a Raw Message ([]byte) into a Message.
func NewMessageTest ¶
NewMessageTest returns a Raw Message from an array of strings. It is for testing purposes only.