broker

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener chan *Signal

type Pubsub

type Pubsub interface {
	Subscribe(tailnet uint64, listener Listener) (cancel func(), err error)
	Publish(tailnet uint64, message *Signal) error
	Close() error
}

func NewPubsub

func NewPubsub(ctx context.Context, database *sql.DB, connectURL string) (Pubsub, error)

func NewPubsubInMemory

func NewPubsubInMemory() Pubsub

type Signal

type Signal struct {
	PeerUpdated  *uint64
	PeersRemoved []uint64
	ACLUpdated   bool
	DNSUpdated   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL