local

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advertiser

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

func NewAdvertiser

func NewAdvertiser(local identity.Public, address string) (*Advertiser, error)

func (*Advertiser) Run

func (a *Advertiser) Run(ctx context.Context) error

type Discoverer

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

func NewDiscoverer

func NewDiscoverer(local identity.Public, logger logging.Logger) (*Discoverer, error)

func (*Discoverer) Run

func (d *Discoverer) Run(ctx context.Context) <-chan IdentityWithAddress

type IdentityWithAddress

type IdentityWithAddress struct {
	Remote  identity.Public
	Address network.Address
}

Jump to

Keyboard shortcuts

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