Documentation ¶
Index ¶
- func GetClient() profile.ProfileClient
- func Init(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger)
- func InitWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger)
- func MakeGetProfileEndpoint(f profile.ProfileClient) endpoint.Endpoint
- func NewProfileClient(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger) profile.ProfileClient
- func NewProfileClientWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger) profile.ProfileClient
- func ProfileFactory(makeEndpoint func(f profile.ProfileClient) endpoint.Endpoint, ...) sd.Factory
- type ProfileClient
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 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 ¶
func (*ProfileClient) GetProfile ¶
func (p *ProfileClient) GetProfile(ctx context.Context, in *profile.GetProfileRequest, opts ...grpc.CallOption) (*profile.GetProfileResponse, error)
Click to show internal directories.
Click to hide internal directories.