server

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2025 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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.

func (*GrpcServer) Start added in v1.1.0

func (g *GrpcServer) Start(ctx context.Context) error

func (*GrpcServer) Stop added in v1.1.0

func (g *GrpcServer) Stop(ctx context.Context) error

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, sessionMgr *session.Manager, services ...iface.InitGrpcHttp) *HttpServer

NewHTTPServer new an HTTP server.

func (*HttpServer) BaseHandler added in v1.1.2

func (h *HttpServer) BaseHandler(mux *runtime.ServeMux, fileServer http.Handler) http.HandlerFunc

func (*HttpServer) HandleChunkUpload added in v1.1.2

func (h *HttpServer) HandleChunkUpload(w http.ResponseWriter, r *http.Request)

func (*HttpServer) Start added in v1.1.0

func (h *HttpServer) Start(ctx context.Context) error

func (*HttpServer) Stop added in v1.1.0

func (h *HttpServer) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL