Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
Type string `json:"type"`
Payload json.RawMessage `json:"payload"`
}
type EventWrapper ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func (*Subscriber) Close ¶
func (s *Subscriber) Close() error
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe(ctx context.Context) (<-chan *EventWrapper, error)
Click to show internal directories.
Click to hide internal directories.