v.io: v.io/x/ref/lib/discovery/global Index | Files

package global

import "v.io/x/ref/lib/discovery/global"

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

Index

Package Files

advertise.go encoding.go global.go global.vdl.go scan.go validate.go

Variables

var (
    ErrNoNamespace       = verror.NewIDAction("v.io/x/ref/lib/discovery/global.NoNamespace", verror.NoRetry)
    ErrAdInvalidEncoding = verror.NewIDAction("v.io/x/ref/lib/discovery/global.AdInvalidEncoding", verror.NoRetry)
)

func ErrorfAdInvalidEncoding Uses

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

ErrorfAdInvalidEncoding calls ErrAdInvalidEncoding.Errorf with the supplied arguments.

func ErrorfNoNamespace Uses

func ErrorfNoNamespace(ctx *context.T, format string) error

ErrorfNoNamespace calls ErrNoNamespace.Errorf with the supplied arguments.

func MessageAdInvalidEncoding Uses

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

MessageAdInvalidEncoding calls ErrAdInvalidEncoding.Message with the supplied arguments.

func MessageNoNamespace Uses

func MessageNoNamespace(ctx *context.T, message string) error

MessageNoNamespace calls ErrNoNamespace.Message with the supplied arguments.

func New Uses

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 NewWithTTL Uses

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.

func ParamsErrAdInvalidEncoding Uses

func ParamsErrAdInvalidEncoding(argumentError error) (verrorComponent string, verrorOperation string, ad string, returnErr error)

ParamsErrAdInvalidEncoding extracts the expected parameters from the error's ParameterList.

func ParamsErrNoNamespace Uses

func ParamsErrNoNamespace(argumentError error) (verrorComponent string, verrorOperation string, returnErr error)

ParamsErrNoNamespace extracts the expected parameters from the error's ParameterList.

Package global imports 19 packages (graph) and is imported by 1 packages. Updated 2021-01-19. Refresh now. Tools for package owners.