local

package
v0.0.0-...-53c8147 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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