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

bootstrap

package
v0.0.29 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadStaticValues

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

func NewAPI

func NewAPI(values *common.Values) (*api.API, error)

func UseCaptcha added in v0.0.29

func UseCaptcha(values *common.Values, client *redis.Client) *captcha.Captcha

func UseCsrf added in v0.0.29

func UseCsrf(values *common.Values) *csrf.Csrf

func UseDSL added in v0.0.29

func UseDSL(values *common.Values, db *mongo.Database) (*dsl.DSL, error)

func UseHttpClients added in v0.0.29

func UseHttpClients() *common.HttpClients

UseHttpClients 创建请求客户端

func UseKV added in v0.0.29

func UseKV(values *common.Values, keyvalue nats.KeyValue) *kv.KV

func UseLocker added in v0.0.29

func UseLocker(values *common.Values, client *redis.Client) *locker.Locker

func UsePassport added in v0.0.29

func UsePassport(values *common.Values) *passport.Passport

func UseRedis

func UseRedis(values *common.Values) (client *redis.Client, err error)

UseRedis https://github.com/go-redis/redis

func UseSessions added in v0.0.29

func UseSessions(values *common.Values, redis *redis.Client) *sessions.Sessions

func UseTest added in v0.0.29

func UseTest() (api *api.API, err error)

UseTest

Types

This section is empty.

Jump to

Keyboard shortcuts

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