Documentation ¶
Index ¶
- Variables
- func LoadStaticValues() (values *common.Values, err error)
- func NewApp() (*app.App, error)
- func UseDatabase(values *common.Values, client *mongo.Client) (db *mongo.Database)
- func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)
- func UseKeyValue(values *common.Values, js nats.JetStreamContext) (nats.KeyValue, error)
- func UseMongoDB(values *common.Values) (*mongo.Client, error)
- func UseNats(values *common.Values) (nc *nats.Conn, err error)
- func UseZap() (log *zap.Logger, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Provides = wire.NewSet( LoadStaticValues, UseZap, UseMongoDB, UseDatabase, UseNats, UseJetStream, UseKeyValue, )
Functions ¶
func LoadStaticValues ¶ added in v1.5.0
func UseDatabase ¶ added in v1.5.0
https://www.mongodb.com/docs/drivers/go/current/ https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo
func UseJetStream ¶
func UseJetStream(nc *nats.Conn) (nats.JetStreamContext, error)
func UseKeyValue ¶ added in v1.5.0
https://docs.nats.io/using-nats/developer/develop_jetstream/kv
func UseMongoDB ¶ added in v1.5.0
https://www.mongodb.com/docs/drivers/go/current/ https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.