config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrokerNats  = "nats"
	BrokerKafka = "kafka"
)
View Source
const (
	LogLevelDebug = "DEBUG"
	LogLevelInfo  = "INFO"
	LogLevelWarn  = "WARN"
	LogLevelError = "ERROR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BrokerType                string
	NatsUrl                   string
	KafkaUrl                  string
	HttpEnabled               bool
	HttpPort                  int
	RpcUrl                    string
	TopicIncomingRpcRequests  string
	TopicOutgoingRpcResponses string
	TopicErrors               string
	LogLevel                  LogLevelFlag
	ApmEnabled                bool
}

func NewDefaultConfig

func NewDefaultConfig() Config

func (Config) ListenAddr

func (c Config) ListenAddr() string

type LogLevelFlag

type LogLevelFlag struct {
	LevelString string
	ZapLevel    zapcore.Level
}

func NewLogLevelFlag

func NewLogLevelFlag() LogLevelFlag

func (*LogLevelFlag) Set

func (l *LogLevelFlag) Set(str string) error

func (LogLevelFlag) String

func (l LogLevelFlag) String() string

func (LogLevelFlag) Type

func (l LogLevelFlag) Type() string

Jump to

Keyboard shortcuts

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