config

package
v0.0.0-...-08ad29a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	ServicePort           int      `env:"PORT" envDefault:"9090"`
	MetricsPort           int      `env:"METRICS_PORT" envDefault:"7000"`
	KafkaBootstrapServers []string `env:"KAFKA_PRODUCER_BOOTSTRAP_SERVERS" envDefault:"localhost:9092"`

	DatabaseConnectUrl string `env:"DATABASE_URL" envDefault:"root:@/test"`
}

func (*Conf) Print

func (c *Conf) Print() interface{}

func (*Conf) Register

func (c *Conf) Register() error

func (*Conf) Validate

func (c *Conf) Validate() error

Jump to

Keyboard shortcuts

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