Documentation ¶
Index ¶
- type Message
- func (m *Message) MakeActionResponse(containerName string, actionName string, rc int)
- func (m *Message) MakeEmitEvent(containerName string, eventName string, params interface{})
- func (m *Message) MakeRegisterAction(containerName string, actionName string)
- func (m *Message) MakeRegisterContainer(containerName string)
- func (m *Message) MakeRegisterEvent(containerName string, eventName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type string `json:"type"` //Type of message being sent Timestamp int64 `json:"timestamp"` //What time this message was created ContainerName string `json:"container_name"` //Container Name we want to address Name string `json:"name"` //Name of the event/action/container based on type ResponseCode int `json:"response_code"` //Response code (might be nil based on type) Params interface{} `json:"params"` //Params attached to the event ID string `json:"id"` //Message IDs for the clients to keep track of their messages (passed thru) }
Message - handling message functions
func (*Message) MakeActionResponse ¶
MakeActionResponse -
func (*Message) MakeEmitEvent ¶
MakeEmitEvent -
func (*Message) MakeRegisterAction ¶
MakeRegisterAction -
func (*Message) MakeRegisterContainer ¶
MakeRegisterContainer -
func (*Message) MakeRegisterEvent ¶
MakeRegisterEvent -
Click to show internal directories.
Click to hide internal directories.