localdisco

package
v0.0.0-...-d3354c4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MulticastAddr     = "[ff02::1]:7007"
	BroadcastInterval = time.Second * 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalAnnounce

type LocalAnnounce struct {
	ID    friends.ID
	Addrs map[string]int
}

type LocalProvider

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

func New

func New(priv crypto.Signer) (lp *LocalProvider, err error)

func (*LocalProvider) Serve

func (lp *LocalProvider) Serve(dir dis.Directory) (err error)

func (*LocalProvider) SetLocalEndpoints

func (lp *LocalProvider) SetLocalEndpoints(endpoints []string)

func (*LocalProvider) Shutdown

func (lp *LocalProvider) Shutdown()

Jump to

Keyboard shortcuts

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