setup

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCHandlerFunc

func GRPCHandlerFunc(grpcServer *grpc.Server, otherHandler http.Handler, serverSetting *setting.HttpServerSettingS) http.Handler

GRPCHandlerFunc gRPCHandlerFunc ...

func NewGRPC

func NewGRPC(opts []grpc.ServerOption) *grpc.Server

NewGRPC ...

func NewGateway

func NewGateway() *runtime.ServeMux

NewGateway ...

func NewGatewayServerMux

func NewGatewayServerMux(gateway *runtime.ServeMux, debug bool) *http.ServeMux

NewGatewayServerMux ...

func NewHttp2Server added in v1.5.11

func NewHttp2Server(handler http.Handler, tlsConfig *tls.Config, serverSetting *setting.HttpServerSettingS) *http.Server

func NewHttpServer

func NewHttpServer(handler http.Handler, tlsConfig *tls.Config, serverSetting *setting.HttpServerSettingS) *http.Server

NewHttpServer ...

func NewServerMux

func NewServerMux(debug bool) *http.ServeMux

NewServerMux ...

Types

type GRPCErrReturn

type GRPCErrReturn struct {
	ErrCode   int32  `json:"code,omitempty"`
	ErrMsg    string `json:"error,omitempty"`
	ErrDetail string `json:"detail,omitempty"`
}

Jump to

Keyboard shortcuts

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