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

bootstrap

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func UseDatabase

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

UseDatabase 初始化数据库

func UseJetStream

func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)

UseJetStream 初始化流

func UseMongoDB

func UseMongoDB(values *common.Values) (*mongo.Client, error)

UseMongoDB 初始化 MongoDB 配置文档 https://www.mongodb.com/docs/drivers/go/current/

func UseNats

func UseNats(values *common.Values) (nc *nats.Conn, err error)

UseNats 初始化 Nats 配置文档 https://docs.nats.io/using-nats/developer SDK https://github.com/nats-io/nats.go

func UseRedis

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

UseRedis 初始化 Redis 配置文档 https://github.com/go-redis/redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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