structure

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACCESS_SETTINGS

type ACCESS_SETTINGS struct {
	ENDPOINTS      []string               `koanf:"endpoints"     transform:"lower"`
	FIELD_POLICIES map[string]FieldPolicy `koanf:"fieldpolicies" transform:"lower" childtransform:"default"`
}

type ENV

type ENV struct {
	CONFIG_PATH   string
	DEFAULTS_PATH string
	FAVICON_PATH  string
	TOKENS_DIR    string
	LOG_LEVEL     string
	PORT          string
	API_URL       string
	API_TOKENS    []string
	SETTINGS      map[string]*SETTINGS `koanf:"settings"`
	INSECURE      bool
}

type FieldMapping

type FieldMapping struct {
	Field string `koanf:"field"         transform:"lower"`
	Score int    `koanf:"score"         transform:"lower"`
}

type FieldPolicy

type FieldPolicy struct {
	Value  any    `koanf:"value"         transform:"lower"`
	Action string `koanf:"action"        transform:"lower"`
}

type MESSAGE_SETTINGS

type MESSAGE_SETTINGS struct {
	VARIABLES      map[string]any            `koanf:"variables"                       childtransform:"upper"`
	FIELD_MAPPINGS map[string][]FieldMapping `koanf:"fieldmappings"                   childtransform:"default"`
	TEMPLATE       string                    `koanf:"template"      transform:"lower"`
}

type SETTINGS

type SETTINGS struct {
	ACCESS  ACCESS_SETTINGS  `koanf:"access"        transform:"lower"`
	MESSAGE MESSAGE_SETTINGS `koanf:"message"       transform:"lower"`
}

Jump to

Keyboard shortcuts

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