Documentation ¶
Index ¶
- Variables
- func MiddlewareCors() middleware.Middleware
- func NewGRPCServer(c *conf.Server, timeline *service.TimelineService, logger log.Logger) *grpc.Server
- func NewHTTPServer(c *conf.Server, timeline *service.TimelineService, logger log.Logger) *http.Server
- func NotFoundHandler(res nethttp.ResponseWriter, req *nethttp.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer)
ProviderSet is server providers.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(c *conf.Server, timeline *service.TimelineService, logger log.Logger) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, timeline *service.TimelineService, logger log.Logger) *http.Server
NewHTTPServer new a HTTP server.
func NotFoundHandler ¶
func NotFoundHandler(res nethttp.ResponseWriter, req *nethttp.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.