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

bootstrap

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadStaticValues

func LoadStaticValues(path string) (v *common.Values, err error)

func NewAPI

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

func NewOpenAPI added in v0.1.23

func NewOpenAPI(values2 *common.Values) (*openapi.API, error)

func NewXAPI added in v0.1.16

func NewXAPI(values2 *common.Values) (*xapi.API, error)

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 UseCaptcha(client *redis.Client) *captcha.Captcha

func UseCipher added in v0.1.0

func UseCipher(v *common.Values) (*cipher.Cipher, error)

func UseCsrf added in v0.0.29

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

func UseDatabase

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

func UseHertz

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

func UseInflux added in v0.1.0

func UseInflux(v *common.Values) influxdb2.Client

func UseJetStream

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

func UseKeyValue added in v0.0.29

func UseKeyValue(v *common.Values, js nats.JetStreamContext) (nats.KeyValue, error)

func UseLocker added in v0.0.29

func UseLocker(client *redis.Client) *locker.Locker

func UseMongoDB

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

func UseNats

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

func UseRedis

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

func UseRest added in v0.1.0

func UseRest(
	v *common.Values,
	mgo *mongo.Client,
	db *mongo.Database,
	rdb *redis.Client,
	js nats.JetStreamContext,
	keyvalue nats.KeyValue,
	xcipher *cipher.Cipher,
) *rest.Service

func UseSessions added in v0.0.29

func UseSessions(v *common.Values, rdb *redis.Client) *sessions.Service

func UseTransfer

func UseTransfer(js nats.JetStreamContext) (*transfer.Client, error)

func UseValues added in v0.1.0

func UseValues(kv nats.KeyValue, cipher *cipher.Cipher) *values.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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