Back to

Package direct

Latest Go to latest

The latest major version is .

Published: Jan 20, 2020 | License: MIT | Module:



const (
	// Name is the name of direct resolver
	Name = "direct"

type Direct

type Direct struct {
	// contains filtered or unexported fields

Direct is a resolver for conneting endpoints directly. example format: direct://default/,

func Build

func Build(id string) *Direct

Build build direct.

func New

func New() *Direct

New return Direct

func (*Direct) Build

func (d *Direct) Build(id string, opt ...naming.BuildOpt) naming.Resolver

Build direct build.

func (*Direct) Close

func (d *Direct) Close() error

Close close Direct

func (*Direct) Fetch

func (d *Direct) Fetch(ctx context.Context) (res *naming.InstancesInfo, found bool)

Fetch fetch isntances.

func (*Direct) Scheme

func (d *Direct) Scheme() string

Scheme return the Scheme of Direct

func (*Direct) Unwatch

func (d *Direct) Unwatch(id string)

Unwatch a tree.

func (*Direct) Watch

func (d *Direct) Watch() <-chan struct{}

Watch a tree.

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