config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricFrequency added in v1.5.0

func GetMetricFrequency(metricName string) (int64, error)

func GetMetrics added in v1.5.0

func GetMetrics() map[string]metricstore.MetricConfig

func Init

func Init(mainConfig json.RawMessage)

func InitMetrics added in v1.5.0

func InitMetrics(metricConfig json.RawMessage)

func Validate added in v1.5.0

func Validate(schema string, instance json.RawMessage)

Types

type Config

type Config struct {
	Address    string `json:"addr"`
	CertFile   string `json:"https-cert-file"`
	KeyFile    string `json:"https-key-file"`
	User       string `json:"user"`
	Group      string `json:"group"`
	BackendURL string `json:"backend-url"`
	Debug      struct {
		DumpToFile string `json:"dump-to-file"`
		EnableGops bool   `json:"gops"`
	} `json:"debug"`
	JwtPublicKey string `json:"jwt-public-key"`
}
var Keys Config

Jump to

Keyboard shortcuts

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