consulsd: github.com/ekomobile/consulsd Index | Files

package consulsd

import "github.com/ekomobile/consulsd"

Index

Package Files

default.go sd.go

Variables

var NoServiceError = errors.New("no service")

type Service Uses

type Service interface {
    Address() string
    Port() int
    Addr() (net.Addr, error)
    MustAddr() net.Addr
}

type ServiceDiscovery Uses

type ServiceDiscovery interface {
    Get(id string) (Service, error)
}

func NewServiceDiscovery Uses

func NewServiceDiscovery() (ServiceDiscovery, error)

func NewServiceDiscoveryWithClient Uses

func NewServiceDiscoveryWithClient(client *api.Client) (ServiceDiscovery, error)

Package consulsd imports 3 packages (graph). Updated 2019-07-08. Refresh now. Tools for package owners.