Documentation ¶
Index ¶
- Variables
- func EndpointInstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func EndpointLoggingMiddleware(logger log.Logger) endpoint.Middleware
- func MakeCreateFeedEndpoint(s feed.FeedServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint
- func MakeGRPCServer(ctx context.Context, s feed.FeedServer, tracer stdopentracing.Tracer, ...) feed.FeedServer
- func MakeGetFeedsEndpoint(s feed.FeedServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint
- func NewFeedService() feed.FeedServer
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 MakeCreateFeedEndpoint ¶
func MakeCreateFeedEndpoint(s feed.FeedServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint
func MakeGRPCServer ¶
func MakeGRPCServer(ctx context.Context, s feed.FeedServer, tracer stdopentracing.Tracer, logger log.Logger) feed.FeedServer
MakeGRPCServer makes a set of endpoints available as a gRPC AddServer.
func MakeGetFeedsEndpoint ¶
func MakeGetFeedsEndpoint(s feed.FeedServer, tracer stdopentracing.Tracer, logger log.Logger) endpoint.Endpoint
func NewFeedService ¶
func NewFeedService() feed.FeedServer
NewFeedService returns a naive, stateless implementation of Feed Service.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.