static

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Static

type Static struct {
	// contains filtered or unexported fields
}

Static implements a static provider.

func NewProvider

func NewProvider() *Static

NewProvider returns a new static provider.

func (*Static) Add

func (p *Static) Add(service string, dial value.Endpoint)

Add adds the provided dial to the provider.

func (*Static) Endpoints

func (p *Static) Endpoints(service string) (value.Endpoints, error)

Endpoints returns the Endpoints for the provided service.

Jump to

Keyboard shortcuts

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