Documentation ¶
Index ¶
- func LoadStaticValues(path string) (v *common.Values, err error)
- func NewAPI(values2 *common.Values) (*api.API, error)
- func NewOpenAPI(values2 *common.Values) (*openapi.API, error)
- func NewXAPI(values2 *common.Values) (*xapi.API, error)
- func ProviderOpenTelemetry(v *common.Values) provider.OtelProvider
- func UseAPIPassport(v *common.Values) *common.APIPassport
- func UseCaptcha(client *redis.Client) *captcha.Captcha
- func UseCipher(v *common.Values) (*cipher.Cipher, error)
- func UseCsrf(v *common.Values) *csrf.Csrf
- func UseDatabase(v *common.Values, client *mongo.Client) (db *mongo.Database)
- func UseHertz(v *common.Values) (h *server.Hertz, err error)
- func UseInflux(v *common.Values) influxdb2.Client
- func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)
- func UseKeyValue(v *common.Values, js nats.JetStreamContext) (nats.KeyValue, error)
- func UseLocker(client *redis.Client) *locker.Locker
- func UseMongoDB(v *common.Values) (*mongo.Client, error)
- func UseNats(v *common.Values) (nc *nats.Conn, err error)
- func UseRedis(v *common.Values) (client *redis.Client, err error)
- func UseRest(v *common.Values, mgo *mongo.Client, db *mongo.Database, rdb *redis.Client, ...) *rest.Service
- func UseSessions(v *common.Values, rdb *redis.Client) *sessions.Service
- func UseTransfer(js nats.JetStreamContext) (*transfer.Client, error)
- func UseValues(kv nats.KeyValue, cipher *cipher.Cipher) *values.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProviderOpenTelemetry ¶ added in v0.1.0
func ProviderOpenTelemetry(v *common.Values) provider.OtelProvider
func UseAPIPassport ¶ added in v0.1.16
func UseAPIPassport(v *common.Values) *common.APIPassport
func UseCaptcha ¶ added in v0.0.29
func UseJetStream ¶
func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)
func UseKeyValue ¶ added in v0.0.29
func UseSessions ¶ added in v0.0.29
func UseTransfer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.