Messaging service, adapters, refactoring
This commit is contained in:
@@ -9,9 +9,15 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Debug bool `env:"DEBUG"`
|
||||
Debug bool `env:"DEBUG"`
|
||||
|
||||
DiscoveryPort uint16 `env:"DISCOVERY_PORT,default=4321"`
|
||||
BroadcastInterval time.Duration `env:"BROADCAST_INTERVAL,default=5s"`
|
||||
|
||||
MessagingPort uint16 `env:"MESSAGING_PORT,default=4322"`
|
||||
MessagingInterval time.Duration `env:"MESSAGING_INTERVAL,default=1s"`
|
||||
|
||||
RandomMessageSize uint `env:"RANDOM_MESSAGE_SIZE,default=10"`
|
||||
}
|
||||
|
||||
func NewConfig(ctx context.Context) (Config, error) {
|
||||
|
||||
Reference in New Issue
Block a user