Documentation
¶
Index ¶
- func LoadStaticValues() (values *common.Values, err error)
- func NewAPI(values *common.Values) (*api.API, error)
- func UseCaptcha(values *common.Values, client *redis.Client) *captcha.Captcha
- func UseCsrf(values *common.Values) *csrf.Csrf
- func UseDSL(values *common.Values, db *mongo.Database) (*dsl.DSL, error)
- func UseDatabase(values *common.Values, client *mongo.Client) (db *mongo.Database)
- func UseHertz(values *common.Values) (h *server.Hertz, err error)
- func UseHttpClients() *common.HttpClients
- func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)
- func UseKV(values *common.Values, keyvalue nats.KeyValue) *kv.KV
- func UseKeyValue(values *common.Values, js nats.JetStreamContext) (nats.KeyValue, error)
- func UseLocker(values *common.Values, client *redis.Client) *locker.Locker
- func UseMongoDB(values *common.Values) (*mongo.Client, error)
- func UseNats(values *common.Values) (nc *nats.Conn, err error)
- func UsePassport(values *common.Values) *passport.Passport
- func UseRedis(values *common.Values) (client *redis.Client, err error)
- func UseSessions(values *common.Values, redis *redis.Client) *sessions.Sessions
- func UseTest() (api *api.API, err error)
- func UseTransfer(values *common.Values, db *mongo.Database, js nats.JetStreamContext) (*transfer.Transfer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadStaticValues ¶
func UseCaptcha ¶ added in v0.0.29
func UseDatabase ¶
UseDatabase https://www.mongodb.com/docs/drivers/go/current/ https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo
func UseHertz ¶
UseHertz https://www.cloudwego.io/zh/docs/hertz/reference/config
func UseHttpClients ¶ added in v0.0.29
func UseHttpClients() *common.HttpClients
UseHttpClients 创建请求客户端
func UseJetStream ¶
func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)
UseJetStream https://docs.nats.io/using-nats/developer/develop_jetstream
func UseKeyValue ¶ added in v0.0.29
UseKeyValue https://docs.nats.io/using-nats/developer/develop_jetstream/kv
func UseMongoDB ¶
UseMongoDB https://www.mongodb.com/docs/drivers/go/current/ https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo
func UseRedis ¶
UseRedis https://github.com/go-redis/redis
func UseSessions ¶ added in v0.0.29
func UseTransfer ¶
func UseTransfer(values *common.Values, db *mongo.Database, js nats.JetStreamContext) (*transfer.Transfer, error)
UseTransfer https://github.com/weplanx/transfer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.