server

package
v0.0.0-...-6a73409 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer(op GrpcOptions) *grpc.Server

func NewHttpServer

func NewHttpServer(op HttpOptions) (*echo.Echo, *http.Server)

func StartServer

func StartServer(op StartServerOptions)

Types

type GrpcOptions

type GrpcOptions struct {
	Logger            *zap.SugaredLogger
	LongTimeout       bool
	LargeFile         bool
	DisableReflection bool
}

type HttpOptions

type HttpOptions struct {
	Dashboard    bool
	DashboardDev bool
	Debug        bool
	LongTimeout  bool
}

type StartServerOptions

type StartServerOptions struct {
	Host       string
	Port       uint16
	HttpServer *http.Server
	GrpcServer *grpc.Server
	Logger     *zap.SugaredLogger
}

Jump to

Keyboard shortcuts

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