config

package
v0.0.0-...-4db3d4f Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MessageRouter MessageRouter
	Log           Log
}

Config uses the "github.com/kelseyhightower/envconfig" library to parse env vars to this configuration

type Log

type Log struct {
	// SALAD_LOG_LEVEL
	Level int `default:"1"`
}

Logger settings

type MessageRouter

type MessageRouter struct {
	// SALAD_MESSAGEROUTER_URL
	URL string `required:"true"`
	// SALAD_MESSAGEROUTER_TCPTIMEOUT
	TCPTimout time.Duration `default:"1m"`
	// SALAD_MESSAGEROUTER_MAXRETRY
	MaxRetry int `default:"5"`
	// SALAD_MESSAGEROUTER_RETRYSLEEP
	RetrySleep time.Duration `default:"1s"`
}

The Message router is the service which dispatches messages to our processor

Jump to

Keyboard shortcuts

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