Documentation ¶ Index ¶ type InvalidMessageError func (e InvalidMessageError) Error() string type Message func NewMessage(to, from bypass.Name, payload *order.Order) Message func (m Message) Validate(to bypass.Name) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type InvalidMessageError ¶ type InvalidMessageError struct { Reason string } func (InvalidMessageError) Error ¶ func (e InvalidMessageError) Error() string type Message ¶ type Message struct { To bypass.Name From bypass.Name Payload *order.Order } func NewMessage ¶ func NewMessage(to, from bypass.Name, payload *order.Order) Message func (Message) Validate ¶ func (m Message) Validate(to bypass.Name) error Source Files ¶ View all Source files errors.go message.go Click to show internal directories. Click to hide internal directories.