Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber is a utility for receiving wireguard key events from a message-queue server
func New ¶
func New(url string, options ...Option) *Subscriber
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe(ctx context.Context, channel chan<- models.DeviceEvent) error
Subscribe establishes a websocket connection for a message-queue channel, and emits messages on the given channel
Click to show internal directories.
Click to hide internal directories.