chassix

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

chassix-bootstrap

chassix framework bootstrap

c5x.io/chassix

Documentation

Index

Constants

View Source
const (
	ModuleApp      = internal.KeyAppConfig
	ModuleApollo   = internal.KeyApolloConfig
	ModuleServer   = internal.KeyServerConfig
	ModuleLogging  = internal.KeyLoggingConfig
	ModuleDataGorm = "chassix.data.gorm"
	ModuleDataSqlx = "chassix.data.sqlx"
	ModuleRedis    = "chassix.data.redis"
	ModuleCache    = "chassix.cache"
	ModuleGrpc     = "chassix.grpc"
	ModuleRestful  = "chassix.restful"
)

Variables

This section is empty.

Functions

func Init

func Init()

Init 在所有模块注册就绪后初始化

func Register

func Register(module *Module) error

func StartGrpcServer

func StartGrpcServer()

StartRPCServer starting a gRPC server

func StartHttpServer

func StartHttpServer(handler http.Handler)

StartHttpServer starting a http server for restful api

Types

type Module

type Module struct {
	Name      string
	ConfigPtr interface{}
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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