config

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfPath string
View Source
var Deploy bool

Functions

func ParseFlags

func ParseFlags()

Types

type Config

type Config struct {
	Logger          LoggerConfig `json:"logger" env_var:"LOGGER_CONFIG"`
	URLPrefix       string       `json:"url_prefix" env_var:"URL_PREFIX"`
	ServerPort      int          `json:"server_port" env_var:"SERVER_PORT"`
	Debug           bool         `json:"debug" env_var:"DEBUG"`
	FlowApiEndpoint string       `json:"flow_api_endpoint" env_var:"FLOW_API_ENDPOINT"`
}

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