configs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TestingBasePath = "/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// DbDialect is the DB dialect (Gorm driver name: sqlite3)
	DbDialect string `long:"db-dialect" env:"SERVICE_DB_DIALECT"`

	// DbDsn is the DB connection info: ":memory:"
	DbDsn string `long:"db-dsn" env:"SERVICE_DB_DSN"`

	// DbSample enables filling DB by sampe data
	DbSample bool `long:"db-sample" env:"SERVICE_DB_SAMPLE"`

	// DbDebug enables DB debug messages
	DbDebug bool `long:"db-debug" env:"SERVICE_DB_DEBUG"`

	// AuthIdentityKey is Identity key to JWT
	AuthIdentityKey string `long:"auth-identity-key" env:"SERVICE_AUTH_IDENTITY_KEY"`
}

Jump to

Keyboard shortcuts

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