commands

package
v0.0.0-...-90a23b5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StructuredLoggingFlagName  = "structuredLogging"
	RawRequestsLoggingFlagName = "rawRequestsLogging"
	DatabaseHostnameFlagName   = "databaseHostname"
	HostnameFlagName           = "host"
	PortFlagName               = "port"

	CommonFlags = []cli.Flag{
		&cli.BoolTFlag{
			Name:   StructuredLoggingFlagName,
			Usage:  "enable structured logging",
			EnvVar: "STRUCTURED_LOGGING",
		},
		&cli.StringFlag{
			Name:   DatabaseHostnameFlagName,
			EnvVar: "PGHOST",
			Value:  "database",
		},
		&cli.StringFlag{
			Name:   "databasePort",
			EnvVar: "PGPORT",
			Value:  "5432",
		},
		&cli.StringFlag{
			Name:   "databaseUser",
			EnvVar: "PGUSER",
			Value:  "user-development",
		},
		&cli.StringFlag{
			Name:   "databaseName",
			EnvVar: "PGNAME",
			Value:  "development",
		},
		&cli.StringFlag{
			Name:   "databasePassword",
			EnvVar: "PGPASSWORD",
			Value:  "development",
		},
	}

	ServiceFlags = []cli.Flag{
		&cli.StringFlag{
			Name:   "host",
			EnvVar: "HOST",
			Value:  "localhost",
		},
		&cli.StringFlag{
			Name:   "port",
			EnvVar: "PORT",
			Value:  "50051",
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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