kit: github.com/go-kit/kit/examples/profilesvc/client Index | Files

package client

import "github.com/go-kit/kit/examples/profilesvc/client"

Package client provides a profilesvc client based on a predefined Consul service name and relevant tags. Users must only provide the address of a Consul server.

Index

Package Files

client.go

func New Uses

func New(consulAddr string, logger log.Logger) (profilesvc.Service, error)

New returns a service that's load-balanced over instances of profilesvc found in the provided Consul server. The mechanism of looking up profilesvc instances in Consul is hard-coded into the client.

Package client imports 9 packages (graph). Updated 2017-01-19. Refresh now. Tools for package owners.