iface

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
}

type GroupBridge

type GroupBridge interface {
	Groups() []uint64
	ListGroup(uint64) []GroupItem
	GroupReady(uint64) bool
	GroupReadinessBarrier(uint64) <-chan struct{}
	OnJoin(uint64, GroupEventCallback) func()
	OnLeave(uint64, GroupEventCallback) func()
}

type GroupEventCallback added in v1.3.0

type GroupEventCallback = func(group uint64, item GroupItem)

type GroupItem

type GroupItem interface {
	Address() netip.Addr
	ExpiresAt() time.Time
}

type StartStopper

type StartStopper interface {
	Start() error
	Stop() error
}

Jump to

Keyboard shortcuts

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