Help us shape the future of Go! Take the 2026 Go Developer Survey

bootstrap

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadValues added in v0.2.0

func LoadValues() (values *common.Values, err error)

LoadValues 加载配置

func NewAPI added in v0.2.0

func NewAPI() (*api.API, error)

func UseDatabase

func UseDatabase(client *mongo.Client, values *common.Values) (db *mongo.Database)

UseDatabase 初始化数据库 配置文档 https://www.mongodb.com/docs/drivers/go/current/ https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo

func UseHertz added in v0.2.0

func UseHertz(values *common.Values) (h *server.Hertz, err error)

UseHertz 使用 Hertz 配置文档 https://www.cloudwego.io/zh/docs/hertz/reference/config

Types

This section is empty.

Jump to

Keyboard shortcuts

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