startup

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionEmailConfig             = "email-config"
	SectionQueueUserRegisterNotice = "queue-user-register-notice"
	SectionQueueUserStateNotice    = "queue-user-state-notice"
	SectionJwt                     = "kelvins-jwt"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

LoadConfig 加载配置对象映射

func RegisterGRPCServer

func RegisterGRPCServer(grpcServer *grpc.Server) error

RegisterGRPCServer 此处注册pb的Server

func RegisterGateway

func RegisterGateway(ctx context.Context, gateway *runtime.ServeMux, endPoint string, dopts []grpc.DialOption) error

RegisterGateway 此处注册pb的Gateway

func RegisterHttpRoute

func RegisterHttpRoute(serverMux *http.ServeMux) error

RegisterHttpRoute 此处注册http接口

func SetupVars

func SetupVars() error

SetupVars 加载变量

Types

This section is empty.

Jump to

Keyboard shortcuts

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