Documentation ¶
Index ¶
- Constants
- func Deserialize(data []byte) (stdtypes.Event, error)
- type GarbageCollect
- func (e *GarbageCollect) Dest() t.ModuleID
- func (e *GarbageCollect) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *GarbageCollect) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *GarbageCollect) Src() t.ModuleID
- func (e *GarbageCollect) ToBytes() ([]byte, error)
- func (e *GarbageCollect) ToString() string
- type Init
- type MessageReceived
- func (e *MessageReceived) Dest() t.ModuleID
- func (e *MessageReceived) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *MessageReceived) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *MessageReceived) Src() t.ModuleID
- func (e *MessageReceived) ToBytes() ([]byte, error)
- func (e *MessageReceived) ToString() string
- type NewSubmodule
- func (e *NewSubmodule) Dest() t.ModuleID
- func (e *NewSubmodule) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *NewSubmodule) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *NewSubmodule) Src() t.ModuleID
- func (e *NewSubmodule) ToBytes() ([]byte, error)
- func (e *NewSubmodule) ToString() string
- type Raw
- type SendMessage
- func (e *SendMessage) Dest() t.ModuleID
- func (e *SendMessage) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *SendMessage) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *SendMessage) Src() t.ModuleID
- func (e *SendMessage) ToBytes() ([]byte, error)
- func (e *SendMessage) ToString() string
- type TestString
- func (e *TestString) Dest() t.ModuleID
- func (e *TestString) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *TestString) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *TestString) Src() t.ModuleID
- func (e *TestString) ToBytes() ([]byte, error)
- func (e *TestString) ToString() string
- type TestUint64
- func (e *TestUint64) Dest() t.ModuleID
- func (e *TestUint64) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *TestUint64) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *TestUint64) Src() t.ModuleID
- func (e *TestUint64) ToBytes() ([]byte, error)
- func (e *TestUint64) ToString() string
- type TimerDelay
- func (e *TimerDelay) Dest() t.ModuleID
- func (e *TimerDelay) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *TimerDelay) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *TimerDelay) Src() t.ModuleID
- func (e *TimerDelay) ToBytes() ([]byte, error)
- func (e *TimerDelay) ToString() string
- type TimerRepeat
- func (e *TimerRepeat) Dest() t.ModuleID
- func (e *TimerRepeat) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
- func (e *TimerRepeat) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
- func (e *TimerRepeat) Src() t.ModuleID
- func (e *TimerRepeat) ToBytes() ([]byte, error)
- func (e *TimerRepeat) ToString() string
Constants ¶
View Source
const ( RawEvent = "Raw" InitEvent = "Init" SendMessageEvent = "SendMessage" MessageReceivedEvent = "MessageReceived" TimerDelayEvent = "TimerDelay" TimerRepeatEvent = "TimerRepeat" NewSubmoduleEvent = "NewSubmodule" GarbageCollectEvent = "GarbageCollect" TestStringEvent = "TestString" TestUint64Event = "TestUint" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GarbageCollect ¶
type GarbageCollect struct { RetentionIndex stdtypes.RetentionIndex // contains filtered or unexported fields }
func NewGarbageCollect ¶
func NewGarbageCollect(dest stdtypes.ModuleID, retIdx stdtypes.RetentionIndex) *GarbageCollect
func NewGarbageCollectWithSrc ¶
func NewGarbageCollectWithSrc( src stdtypes.ModuleID, dest stdtypes.ModuleID, retIdx stdtypes.RetentionIndex, ) *GarbageCollect
func (*GarbageCollect) NewDest ¶
func (e *GarbageCollect) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
func (*GarbageCollect) NewSrc ¶
func (e *GarbageCollect) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
func (*GarbageCollect) ToBytes ¶
func (e *GarbageCollect) ToBytes() ([]byte, error)
func (*GarbageCollect) ToString ¶
func (e *GarbageCollect) ToString() string
type MessageReceived ¶
type MessageReceived struct { Sender stdtypes.NodeID Payload stdtypes.Message // contains filtered or unexported fields }
func NewMessageReceived ¶
func (*MessageReceived) NewDest ¶
func (e *MessageReceived) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
func (*MessageReceived) NewSrc ¶
func (e *MessageReceived) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
func (*MessageReceived) ToBytes ¶
func (e *MessageReceived) ToBytes() ([]byte, error)
func (*MessageReceived) ToString ¶
func (e *MessageReceived) ToString() string
type NewSubmodule ¶
type NewSubmodule struct { SubmoduleID stdtypes.ModuleID Params stdtypes.Serializable RetentionIndex stdtypes.RetentionIndex // contains filtered or unexported fields }
func NewNewSubmodule ¶
func NewNewSubmodule( dest stdtypes.ModuleID, submoduleID stdtypes.ModuleID, params stdtypes.Serializable, retIdx stdtypes.RetentionIndex, ) *NewSubmodule
func NewNewSubmoduleWithSrc ¶
func NewNewSubmoduleWithSrc( src stdtypes.ModuleID, dest stdtypes.ModuleID, submoduleID stdtypes.ModuleID, params stdtypes.Serializable, retIdx stdtypes.RetentionIndex, ) *NewSubmodule
func (*NewSubmodule) NewDest ¶
func (e *NewSubmodule) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
func (*NewSubmodule) NewSrc ¶
func (e *NewSubmodule) NewSrc(newSrc stdtypes.ModuleID) stdtypes.Event
func (*NewSubmodule) ToBytes ¶
func (e *NewSubmodule) ToBytes() ([]byte, error)
func (*NewSubmodule) ToString ¶
func (e *NewSubmodule) ToString() string
type Raw ¶
type Raw struct { Data []byte // contains filtered or unexported fields }
func NewRawWithSrc ¶
type SendMessage ¶
type SendMessage struct { DestNodes []stdtypes.NodeID RemoteDestModule stdtypes.ModuleID Payload stdtypes.Message // contains filtered or unexported fields }
func NewSendMessage ¶
func NewSendMessageWithSrc ¶
func (*SendMessage) NewDest ¶
func (e *SendMessage) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
func (*SendMessage) ToBytes ¶
func (e *SendMessage) ToBytes() ([]byte, error)
func (*SendMessage) ToString ¶
func (e *SendMessage) ToString() string
type TestString ¶
type TestString struct { Value string // contains filtered or unexported fields }
func NewTestString ¶
func NewTestString(dest stdtypes.ModuleID, value string) *TestString
func NewTestStringWithSrc ¶
func (*TestString) ToBytes ¶
func (e *TestString) ToBytes() ([]byte, error)
func (*TestString) ToString ¶
func (e *TestString) ToString() string
type TestUint64 ¶
type TestUint64 struct { Value uint64 // contains filtered or unexported fields }
func NewTestUint64 ¶
func NewTestUint64(dest stdtypes.ModuleID, value uint64) *TestUint64
func NewTestUint64WithSrc ¶
func (*TestUint64) ToBytes ¶
func (e *TestUint64) ToBytes() ([]byte, error)
func (*TestUint64) ToString ¶
func (e *TestUint64) ToString() string
type TimerDelay ¶
type TimerDelay struct { Events []stdtypes.Event Delay time.Duration // contains filtered or unexported fields }
func NewTimerDelay ¶
func NewTimerDelayWithSrc ¶
func (*TimerDelay) ToBytes ¶
func (e *TimerDelay) ToBytes() ([]byte, error)
func (*TimerDelay) ToString ¶
func (e *TimerDelay) ToString() string
type TimerRepeat ¶
type TimerRepeat struct { Events []stdtypes.Event Period time.Duration RetentionIndex stdtypes.RetentionIndex // contains filtered or unexported fields }
func NewTimerRepeat ¶
func NewTimerRepeat( dest stdtypes.ModuleID, period time.Duration, retentionIndex stdtypes.RetentionIndex, events ...stdtypes.Event, ) *TimerRepeat
func NewTimerRepeatWithSrc ¶
func (*TimerRepeat) NewDest ¶
func (e *TimerRepeat) NewDest(newDest stdtypes.ModuleID) stdtypes.Event
func (*TimerRepeat) ToBytes ¶
func (e *TimerRepeat) ToBytes() ([]byte, error)
func (*TimerRepeat) ToString ¶
func (e *TimerRepeat) ToString() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.