boot

package
v0.0.0-...-3b8fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootDir string

	MysqlDbDsn    string
	MaxOpenConn   int
	MaxIdleConn   int
	RedisAddr     string
	RedisPassword string
	RedisDb       int
	MongoAddr     string
	LeveldbPath   string
	LoggerPath    string
	EsUrl         string
)
View Source
var DefaultWriter io.Writer = os.Stdout

Functions

func Boot

func Boot()

Boot 项目初始化

func HttpServe

func HttpServe() error

HttpServe init

func InitDb

func InitDb(dbDsn string, maxOpenConn, maxIdleConn int)

InitDb init gorm

func InitEs

func InitEs(url string)

InitEs init elastic

func InitLevelDb

func InitLevelDb(path string)

InitLevelDb init leveldb

func InitLog

func InitLog(filepath string)

InitLog init log

func InitMongo

func InitMongo(addr string)

InitMongo init mongodb

func InitRedis

func InitRedis(addr, pass string, rdb int)

InitRedis init redis

func RunGrpcServer

func RunGrpcServer() error

RunGrpcServer 运行grpc 服务

func WebsocketServer

func WebsocketServer() error

WebsocketServer websocket服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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