config

package
v0.0.0-...-5230034 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 7 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 {
	LogConfig
	SlackConfig
	EveAPIConfig
	Identity                IdentityConfig
	Oidc                    OIDCConfig
	Port                    int    `split_words:"true" default:"8080"`
	MetricsPort             int    `split_words:"true" default:"3001"`
	ServiceName             string `split_words:"true" default:"eve"`
	AWSRegion               string `split_words:"true" required:"true"`
	LoggingDashboardBaseURL string `split_words:"true" required:"true"`
	UserTableName           string `split_words:"true" required:"true"`
	DevopsMonitoringChannel string `split_words:"true" required:"true"`
}

Config is the top level application config

func Load

func Load() Config

Load loads the config reading it from the environment

type EveAPIConfig

type EveAPIConfig = eveapi.Config

EveAPIConfig is the config for the Eve API

type IdentityConfig

type IdentityConfig = identity.ValidatorConfig

IdentityConfig is the OIDC (KeyCloak) Config data

type LogConfig

type LogConfig = log.Config

LogConfig is the logger config (log level, output...)

type OIDCConfig

type OIDCConfig struct {
	ClientSecret string `split_words:"true" required:"true"`
	RedirectURL  string `split_words:"true" required:"true"`
}

type SlackConfig

type SlackConfig = slackservice.Config

SlackConfig is the slack config (secret, tokens...)

Jump to

Keyboard shortcuts

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