Documentation ¶
Index ¶
Constants ¶
View Source
const Kind = "close"
Kind identifies this message kind
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Close ¶
type Close struct { Metadata message.Metadata `json:"metadata,omitempty"` Data Data `json:"data,omitempty"` Signature string `json:"signature,omitempty"` }
Close represents a close message within the exchange.
func (Close) GetMetadata ¶ added in v0.13.0
GetMetadata returns the metadata of the message.
func (Close) GetValidNext ¶ added in v0.13.0
GetValidNext returns the kinds of messages that can follow a close.
func (*Close) UnmarshalJSON ¶
UnmarshalJSON validates and unmarshals the input data into a Close.
type CreateOption ¶
type CreateOption func(*createOptions)
CreateOption defines a type for functions that can modify the createOptions struct.
func CreatedAt ¶
func CreatedAt(t time.Time) CreateOption
CreatedAt can be passed to Create to provide a custom created at time.
func ExternalID ¶
func ExternalID(externalID string) CreateOption
ExternalID can be passed to Create to provide a custom external id.
func Reason ¶
func Reason(reason string) CreateOption
Reason can be passed to Create to provide a custom reason.
func Success ¶
func Success(success bool) CreateOption
Success can be passed to Create to provide a custom success.
Click to show internal directories.
Click to hide internal directories.