setup

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: BSD-3-Clause Imports: 18 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.ServerSettingS) http.Handler

gRPCHandlerFunc ...

func NewGRPC

func NewGRPC(serverSetting *setting.ServerSettingS, opts []grpc.ServerOption) (*grpc.Server, error)

NewGRPC ...

func NewGateway

func NewGateway() *runtime.ServeMux

NewGateway ...

func NewGatewayServerMux

func NewGatewayServerMux(gateway *runtime.ServeMux) *http.ServeMux

NewGatewayServerMux ...

func NewHttpServer

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

NewHttpServer ...

func NewServerMux

func NewServerMux() *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