Documentation ¶
Overview ¶
Package message represents message that messagerouter can route
Index ¶
Constants ¶
const ( CallMethodMessageType // CallMethodMessage - Simply call method and return result CallConstructorMessageType // CallConstructorMessage is a message for calling constructor and obtain its response DelegateMessageType // DelegateMessage is a message for injecting a delegate ChildMessageType // ChildMessage is a message for saving a child UpdateObjectMessageType // UpdateObjectMessage is a message for updating an object GetObjectMessageType // GetObjectMessage is a message for retrieving an object )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallConstructorMessage ¶
type CallConstructorMessage struct { ClassRef core.RecordRef Name string Arguments core.Arguments // contains filtered or unexported fields }
CallConstructorMessage is a message for calling constructor and obtain its response
func (*CallConstructorMessage) GetOperatingRole ¶ added in v0.2.0
func (m *CallConstructorMessage) GetOperatingRole() core.JetRole
GetOperatingRole returns operating jet role for given message type.
func (*CallConstructorMessage) GetReference ¶
func (m *CallConstructorMessage) GetReference() core.RecordRef
Get reference returns referenced object.
type CallMethodMessage ¶
type CallMethodMessage struct { ObjectRef core.RecordRef Request core.RecordRef Method string Arguments core.Arguments // contains filtered or unexported fields }
CallMethodMessage - Simply call method and return result
func (*CallMethodMessage) GetOperatingRole ¶ added in v0.2.0
func (m *CallMethodMessage) GetOperatingRole() core.JetRole
GetOperatingRole returns operating jet role for given message type.
func (*CallMethodMessage) GetReference ¶
func (m *CallMethodMessage) GetReference() core.RecordRef
GetReference returns referenced object.
type ChildMessage ¶ added in v0.2.0
type ChildMessage struct { Into core.RecordRef Class core.RecordRef Body []byte // contains filtered or unexported fields }
ChildMessage is a message for saving contract's body as a child
func (*ChildMessage) GetOperatingRole ¶ added in v0.2.0
func (m *ChildMessage) GetOperatingRole() core.JetRole
GetOperatingRole returns operating jet role for given message type.
func (*ChildMessage) GetReference ¶ added in v0.2.0
func (m *ChildMessage) GetReference() core.RecordRef
GetReference returns referenced object.
type DelegateMessage ¶
type DelegateMessage struct { Into core.RecordRef Class core.RecordRef Body []byte // contains filtered or unexported fields }
DelegateMessage is a message for saving contract's body as a delegate
func (*DelegateMessage) GetOperatingRole ¶ added in v0.2.0
func (m *DelegateMessage) GetOperatingRole() core.JetRole
GetOperatingRole returns operating jet role for given message type.
func (*DelegateMessage) GetReference ¶
func (m *DelegateMessage) GetReference() core.RecordRef
GetReference returns referenced object.
type GetObjectMessage ¶ added in v0.2.0
GetObjectMessage is a message for calling constructor and obtain its response
func (*GetObjectMessage) GetOperatingRole ¶ added in v0.2.0
func (m *GetObjectMessage) GetOperatingRole() core.JetRole
GetOperatingRole returns operating jet role for given message type.
func (*GetObjectMessage) GetReference ¶ added in v0.2.0
func (m *GetObjectMessage) GetReference() core.RecordRef
GetReference returns referenced object.
type UpdateObjectMessage ¶ added in v0.2.0
type UpdateObjectMessage struct { Object core.RecordRef Body []byte // contains filtered or unexported fields }
UpdateObjectMessage is a message for calling constructor and obtain its response
func (*UpdateObjectMessage) GetOperatingRole ¶ added in v0.2.0
func (m *UpdateObjectMessage) GetOperatingRole() core.JetRole
GetOperatingRole returns operating jet role for given message type.
func (*UpdateObjectMessage) GetReference ¶ added in v0.2.0
func (m *UpdateObjectMessage) GetReference() core.RecordRef
Get reference returns referenced object.