config

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 6 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 {
	ServerPort       int           `json:"server_port" env_var:"SERVER_PORT"`
	Logger           LoggerConfig  `json:"logger" env_var:"LOGGER_CONFIG"`
	MongoUrl         string        `json:"mongo_url" env_var:"MONGO_URL"`
	HttpTimeout      time.Duration `json:"http_timeout" env_var:"HTTP_TIMEOUT"`
	PermissionsV2Url string        `json:"permissions_v2_url" env_var:"PERMISSIONS_V2_URL"`
	OperatorRepoUrl  string        `json:"operator_repo_url" env_var:"OPERATOR_REPO_URL"`
	URLPrefix        string        `json:"url_prefix" env_var:"URL_PREFIX"`
}

func New

func New(path string) (*Config, error)

type LoggerConfig

type LoggerConfig struct {
	Level string `json:"level" env_var:"LOGGER_LEVEL"`
}

Jump to

Keyboard shortcuts

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