config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Host        string
	Port        int
	Debug       bool
	SubmitToken string
	CorsOrigins []string
}

type Config

type Config struct {
	API        APIConfig
	Database   DBConfig
	Tracing    TraceConfig
	Logs       LogsConfig
	Metrics    MetricsConfig
	IssueTypes []string
}

func New

func New() *Config

type DBConfig

type DBConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	Name     string
}

type LogsConfig

type LogsConfig struct {
	JSON   bool
	Debug  bool
	Source bool
}

type MetricsConfig

type MetricsConfig struct {
	Host string
	Port int
}

type TraceConfig

type TraceConfig struct {
	Enabled bool
	Host    string
	Port    int
}

Jump to

Keyboard shortcuts

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