mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
Configuration file not required anymore DIUN_DB env var renamed DIUN_DB_PATH Only accept duration as timeout value (10 becomes 10s) Add getting started doc Enhanced documentation Add note about test notifications (#79) Improve configuration management Fix telegram init All fields in configuration now camelCased Improve configuration validation Update doc Update FAQ Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
22 lines
758 B
Go
22 lines
758 B
Go
package parser
|
|
|
|
import "reflect"
|
|
|
|
// DefaultRootName is the default name of the root node and the prefix of element name from the resources.
|
|
const DefaultRootName = "traefik"
|
|
|
|
// MapNamePlaceholder is the placeholder for the map name.
|
|
const MapNamePlaceholder = "<name>"
|
|
|
|
// Node is a label node.
|
|
type Node struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description,omitempty"`
|
|
FieldName string `json:"fieldName"`
|
|
Value string `json:"value,omitempty"`
|
|
Disabled bool `json:"disabled,omitempty"`
|
|
Kind reflect.Kind `json:"kind,omitempty"`
|
|
Tag reflect.StructTag `json:"tag,omitempty"`
|
|
Children []*Node `json:"children,omitempty"`
|
|
}
|