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

Functions

func New

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.

Source Files

client.go

Version
v0.4.0
Published
Mar 6, 2017
Platform
windows/amd64
Imports
9 packages
Last checked
3 minutes ago

Tools for package owners.