Documentation ¶
Index ¶
- Variables
- func EndpointInstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware
- func MakeGRPCServer(ctx context.Context, s profile.ProfileServer, tracer stdopentracing.Tracer, ...) profile.ProfileServer
- func MakeGetPrifileEndpoint(s profile.ProfileServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint
- func NewProfileService() profile.ProfileServer
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNotFound = errors.New("user not found")
)
Functions ¶
func EndpointInstrumentingMiddleware ¶
func EndpointInstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
func EndpointLoggingMiddleware ¶
func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware
func MakeGRPCServer ¶
func MakeGRPCServer(ctx context.Context, s profile.ProfileServer, tracer stdopentracing.Tracer, logger log.Logger) profile.ProfileServer
MakeGRPCServer makes a set of endpoints available as a gRPC AddServer.
func MakeGetPrifileEndpoint ¶
func MakeGetPrifileEndpoint(s profile.ProfileServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint
func NewProfileService ¶
func NewProfileService() profile.ProfileServer
NewFeedService returns a naive, stateless implementation of Profile Service.
Types ¶
Click to show internal directories.
Click to hide internal directories.