Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerProviderSet = wire.NewSet(NewHTTPServer, NewGRPCServer)
ProviderSet is server providers.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(c *conf.DownloaderServerConfig, downloaderService *service.DownloaderService, logger log.Logger) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(c *conf.DownloaderServerConfig, downloaderService *service.DownloaderService, logger log.Logger) *http.Server
NewHTTPServer new a HTTP server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.