config

package
v0.0.0-...-2a1576b Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type AppConfiguration

type AppConfiguration struct {
	I Infra      `mapstructure:"infra"`
	P Publisher  `mapstructure:"publish"`
	M Monitor    `mapstructure:"monitor"`
	S Subscriber `mapstructure:"subscribe"`
	T Tracing    `mapstructure:"tracing"`
	A ApiConfig  `mapstructure:"api"`
}

type Infra

type Infra struct {
	SeedPath string `mapstructure:"seedPath"`
	NatsUri  string `mapstructure:"natsUri"`
}

type Monitor

type Monitor struct {
	Host         string `mapstructure:"host"`
	Port         int    `mapstructure:"port"`
	Scheme       string `mapstructure:"scheme"`
	Account      string `mapstructure:"account"`
	ConsumerName string `mapstructure:"consumerName"`
	StreamName   string `mapstructure:"streamName"`
	PollSeconds  int    `mapstructure:"pollSeconds"`
}

type Publisher

type Publisher struct {
	SeedPath string `mapstructure:"seedPath"`
	NatsUri  string `mapstructure:"natsUri"`
}

type Subscriber

type Subscriber struct {
	SeedPath          string `mapstructure:"seedPath"`
	NatsUri           string `mapstructure:"natsUri"`
	SleepTimeInMillis int    `mapstructure:"sleepTimeInMillis"`
}

type Tracing

type Tracing struct {
	JaegerUrl   string `mapstructure:"jaeger-url"`
	ServiceName string `mapstructure:"service-name"`
}

Jump to

Keyboard shortcuts

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