broker

package
v0.0.1-preview1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	AddClient(*Client)
	RemoveClient(uint64)

	SignalTailnedDeleted()
	SignalPeerUpdated(id uint64)
	SignalPeersRemoved([]uint64)
	SignalDNSUpdated()
	SignalACLUpdated()

	IsConnected(uint64) bool
}

type BrokerPool

type BrokerPool struct {
	// contains filtered or unexported fields
}

func NewBrokerPool

func NewBrokerPool() *BrokerPool

func (*BrokerPool) Get

func (m *BrokerPool) Get(tailnetID uint64) Broker

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(id uint64, channel chan *Signal) Client

func (*Client) SignalUpdate

func (c *Client) SignalUpdate(s *Signal)

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