common

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Uri        string `yaml:"uri"`
	Name       string `yaml:"name"`
	Collection string `yaml:"collection"`
}

type Inject

type Inject struct {
	Values *Values
	Log    *zap.Logger
	Mongo  *mongo.Client
	Db     *mongo.Database
	Nats   *nats.Conn
	Js     nats.JetStreamContext
}

type Nats

type Nats struct {
	Hosts []string `yaml:"hosts"`
	Nkey  string   `yaml:"nkey"`
}

type TLS

type TLS struct {
	Cert string `yaml:"cert"`
	Key  string `yaml:"key"`
}

type Values

type Values struct {
	Address   string   `yaml:"address"`
	TLS       TLS      `yaml:"tls"`
	Namespace string   `yaml:"namespace"`
	Database  Database `yaml:"database"`
	Nats      Nats     `yaml:"nats"`
}

Jump to

Keyboard shortcuts

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