config

package
v0.0.0-...-f3b1b33 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	// logger
	Logger struct {
		Debug   bool `           long:"debug"        env:"DEBUG"    description:"debug mode"`
		Verbose bool `short:"v"  long:"verbose"      env:"VERBOSE"  description:"verbose mode"`
		LogJson bool `           long:"log.json"     env:"LOG_JSON" description:"Switch log output to json format"`
	}

	// kafka
	Kafka struct {
		// Kafka settings
		Host      string `` /* 132-byte string literal not displayed */
		Topic     string `` /* 133-byte string literal not displayed */
		SSLCert   string `` /* 144-byte string literal not displayed */
		SSLKey    string `` /* 134-byte string literal not displayed */
		SSLCACert string `` /* 147-byte string literal not displayed */
	}

	// general options
	ServerBind string `long:"bind"     env:"SERVER_BIND"   description:"Server address"     default:":9097"`
}

func (*Opts) GetJson

func (o *Opts) GetJson() []byte

Jump to

Keyboard shortcuts

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