profile

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() profile.ProfileClient

func Init

func Init(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger)

func InitWithSD

func InitWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger)

func MakeGetProfileEndpoint

func MakeGetProfileEndpoint(f profile.ProfileClient) endpoint.Endpoint

func NewProfileClient

func NewProfileClient(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger) profile.ProfileClient

func NewProfileClientWithSD

func NewProfileClientWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger) profile.ProfileClient

func ProfileFactory

func ProfileFactory(makeEndpoint func(f profile.ProfileClient) endpoint.Endpoint, tracer stdopentracing.Tracer, logger log.Logger) sd.Factory

Todo: use connect pool, and reference counting to one connection.

Types

type ProfileClient

type ProfileClient struct {
	GetProfileEndpoint endpoint.Endpoint
}

func (*ProfileClient) GetProfile

Jump to

Keyboard shortcuts

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