startup

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionEmailConfig         = "email-config"
	SectionElasticsearchConfig = "elasticsearch-config"
)

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