global

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: BSD-3-Clause Imports: 20 Imported by: 2

Documentation

Overview

TODO(jhahn): This is an experimental work to see its feasibility and set the long-term goal, and can be changed without notice.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoNamespace       = verror.Register("v.io/x/ref/lib/discovery/global.NoNamespace", verror.NoRetry, "{1:}{2:} namespace not found")
	ErrAdInvalidEncoding = verror.Register("v.io/x/ref/lib/discovery/global.AdInvalidEncoding", verror.NoRetry, "{1:}{2:} ad ({3}) has invalid encoding")
)

Functions

func New

func New(ctx *context.T, path string) (discovery.T, error)

New returns a new global Discovery.T instance that uses the Vanadium namespace under 'path' with default mount ttl (120s) and scan interval (90s).

func NewErrAdInvalidEncoding

func NewErrAdInvalidEncoding(ctx *context.T, ad string) error

NewErrAdInvalidEncoding returns an error with the ErrAdInvalidEncoding ID.

func NewErrNoNamespace

func NewErrNoNamespace(ctx *context.T) error

NewErrNoNamespace returns an error with the ErrNoNamespace ID.

func NewWithTTL

func NewWithTTL(ctx *context.T, path string, mountTTL, scanInterval time.Duration) (discovery.T, error)

New returns a new global Discovery.T instance that uses the Vanadium namespace under 'path'. If mountTTL or scanInterval is zero, the default values will be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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