Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnotherTestCommand ¶
type AnotherTestCommand struct {
Value int `json:"value"`
}
AnotherTestCommand is another command type for testing multiple command types.
func (AnotherTestCommand) Name ¶
func (AnotherTestCommand) Name() string
type CustomPayload ¶
type CustomPayload struct {
Custom bool `json:"custom"`
}
CustomPayload is a payload with boolean field for testing custom event kinds.
type SimpleCommand ¶
SimpleCommand is a basic command with name and payload for marshal testing.
func NewSimpleCommand ¶
func NewSimpleCommand(name, payload string) SimpleCommand
NewSimpleCommand creates a SimpleCommand with the given name and payload.
func (SimpleCommand) Name ¶
func (c SimpleCommand) Name() string
type SimpleEvent ¶
SimpleEvent is a basic event with name and payload for marshal testing.
func NewSimpleEvent ¶
func NewSimpleEvent(name, payload string) SimpleEvent
NewSimpleEvent creates a SimpleEvent with the given name and payload.
func (SimpleEvent) Name ¶
func (e SimpleEvent) Name() string
type TestCommand ¶
type TestCommand struct {
Value int `json:"value"`
}
TestCommand is a simple command for testing purposes.
func (TestCommand) Name ¶
func (TestCommand) Name() string
type TestPayload ¶
TestPayload is a basic struct payload for raw event testing.
Click to show internal directories.
Click to hide internal directories.