Documentation ¶
Overview ¶
Package eventbus provides access to an eventbus where governor events can be published. Currently, the only concrete implementation is a NATS client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyEvent = errors.New("event is empty")
ErrEmptyEvent is returned when an empty event is passed
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an event bus client with some configuration
type Option ¶
type Option func(c *Client)
Option is a functional configuration option for governor eventing
func WithNATSPrefix ¶
WithNATSPrefix sets the nats subscription prefix
Click to show internal directories.
Click to hide internal directories.