options

package
v0.0.0-...-3b037d6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel    = "info"
	DefaultStatsPort   = 8282
	DefaultStatsNS     = "event_stream_publisher"
	DefaultKafkaPrefix = "es.stream"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Esp

type Esp struct {
	DbAddr string `envconfig:"DB_ADDR" required:"true"`

	KafkaAddr   []string `envconfig:"KAFKA_BROKERS" required:"true"`
	KafkaPrefix string   `envconfig:"KAFKA_PREFIX"`

	LogLevel  string `envconfig:"LOG_LEVEL"`
	LogFormat string `envconfig:"LOG_FORMAT"`

	StatsNs   string `envconfig:"STATS_NS"`
	StatsPort int    `envconfig:"STATS_HTTP_PORT"`
}

func New

func New() (opts Esp, err error)

func (*Esp) HasKafkaPrefix

func (o *Esp) HasKafkaPrefix() bool

Jump to

Keyboard shortcuts

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