Back to

Package local

Latest Go to latest

The highest tagged major version is .

Published: Jun 2, 2020 | License: Apache-2.0 | Module:


type Local

type Local struct {
	// contains filtered or unexported fields

func New

func New(dsnURL *url.URL) (*Local, error)

DNS example: `local://`

func (*Local) Close

func (l *Local) Close() error

func (*Local) Peers

func (l *Local) Peers() (out []*dmesh.SearchPeer)

func (*Local) PublishNow

func (l *Local) PublishNow(peer dmesh.Peer) error

func (*Local) PublishWithin

func (l *Local) PublishWithin(peer dmesh.Peer, timeout time.Duration)

func (*Local) RegisterPeer

func (l *Local) RegisterPeer(peer dmesh.Peer)

func (*Local) Start

func (l *Local) Start(ctx context.Context, watchServices []string) error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier