Documentation
¶
Index ¶
- Variables
- func NewServerList(http *HttpServer, grpc *GrpcServer) []transport.Server
- type GrpcServer
- type HttpServer
- func (h *HttpServer) BaseHandler(mux *runtime.ServeMux, frontendDir string, fileServer http.Handler) http.HandlerFunc
- func (h *HttpServer) HandleChunkUpload(w http.ResponseWriter, r *http.Request)
- func (h *HttpServer) Start(ctx context.Context) error
- func (h *HttpServer) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer, NewServerList)
ProviderSet is server providers.
Functions ¶
func NewServerList ¶ added in v1.1.0
func NewServerList(http *HttpServer, grpc *GrpcServer) []transport.Server
Types ¶
type GrpcServer ¶ added in v1.1.0
type GrpcServer struct {
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer(c *conf.Server, logger log.Logger, services ...iface.InitGrpcHttp) *GrpcServer
NewGRPCServer new a gRPC server.
type HttpServer ¶ added in v1.1.0
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, logger log.Logger, staticBiz *staticanalysis.StaticAnalysisBiz, fileBiz *filemanager.FileBiz, services ...iface.InitGrpcHttp) *HttpServer
NewHTTPServer new an HTTP server.
func (*HttpServer) BaseHandler ¶ added in v1.1.2
func (h *HttpServer) BaseHandler(mux *runtime.ServeMux, frontendDir string, fileServer http.Handler) http.HandlerFunc
func (*HttpServer) HandleChunkUpload ¶ added in v1.1.2
func (h *HttpServer) HandleChunkUpload(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.