Discover Packages
github.com/balchua/demo-jetstream
pkg
config
package
Version:
v0.0.0-...-2a1576b
Opens a new window with list of versions in this module.
Published: Feb 13, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ApiConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
}
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 struct {
SeedPath string `mapstructure:"seedPath"`
NatsUri string `mapstructure:"natsUri"`
}
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 struct {
SeedPath string `mapstructure:"seedPath"`
NatsUri string `mapstructure:"natsUri"`
}
type Subscriber struct {
SeedPath string `mapstructure:"seedPath"`
NatsUri string `mapstructure:"natsUri"`
SleepTimeInMillis int `mapstructure:"sleepTimeInMillis"`
}
type Tracing struct {
JaegerUrl string `mapstructure:"jaeger-url"`
ServiceName string `mapstructure:"service-name"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.