config

package
v0.0.0-...-96036c8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	ID             primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Type           string             `bson:"type" json:"type"`
	Title          string             `bson:"title" json:"title"`
	Description    string             `bson:"description" json:"description"`
	Key            string             `bson:"key" json:"key"`
	Width          int                `bson:"width" json:"width"`
	Show           bool               `bson:"show" json:"show"`
	Filter         bool               `bson:"filter" json:"filter"`
	FilterExpanded bool               `bson:"filter_expanded" json:"filter_expanded"`
	CSV            bool               `bson:"csv" json:"csv"`
	Order          string             `bson:"order" json:"order"`
}

type Custom

type Custom struct {
	ID           primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Pattern      string             `bson:"pattern" json:"pattern"`
	Image        string             `bson:"image" json:"image"`
	Command      string             `bson:"command" json:"command"`
	Envs         []EnvKeyValue      `bson:"envs" json:"envs"`
	ValueType    string             `bson:"value_type" json:"value_type"`
	Field        string             `bson:"field" json:"field"`
	DefaultValue interface{}        `bson:"default_value" json:"default_value"`
	ErrorValue   interface{}        `bson:"error_value" json:"error_value"`
	Enabled      bool               `bson:"enabled" json:"enabled"`
	BatchMode    bool               `bson:"batch_mode" json:"batch_mode"`
}

type EnvKeyValue

type EnvKeyValue struct {
	Key   string `bson:"key" json:"key"`
	Value string `bson:"value" json:"value"`
}

type GlobalSettings

type GlobalSettings struct {
	ID           primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	ScoreColors  []ScoreColor       `bson:"score_colors" json:"score_colors"`
	ScoreWeights []ScoreWeight      `bson:"score_weights" json:"score_weights"`
}

type ScoreColor

type ScoreColor struct {
	Label string `bson:"label" json:"label"`
	Range []int  `bson:"range" json:"range"`
	Color string `bson:"color" json:"color"`
}

type ScoreWeight

type ScoreWeight struct {
	Weight     int    `bson:"weight" json:"weight"`
	Field      string `bson:"field" json:"field"`
	Comparator string `bson:"comparator" json:"comparator"`
	Arg        string `bson:"arg" json:"arg"`
}

Jump to

Keyboard shortcuts

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