Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LevelField = Field{ Name: "level", Value: "", Title: "日志等级", Desc: "", Type: String, Input: Gradient_select, Pattern: "", Option: []Option{ { Value: "error", Title: "ERROR", }, { Value: "warning", Title: "WARNING", }, { Value: "info", Title: "INFO", }, { Value: "debug", Title: "DEBUG", }, }, }
Functions ¶
This section is empty.
Types ¶
type ConfigDriver ¶
type ConfigDriver interface {
config.ConfigDriver
Title() string
ConfigFields(ignoreNames ...string) []Field
}
type DriverInfo ¶
type DriverManager ¶
type DriverManager struct {
// contains filtered or unexported fields
}
func NewDriverManager ¶
func NewDriverManager(drivers []ConfigDriver, ignoreField ...string) *DriverManager
func (*DriverManager) Get ¶
func (m *DriverManager) Get(driver string) (ConfigDriver, bool)
func (*DriverManager) Infos ¶
func (m *DriverManager) Infos() []DriverInfo
func (*DriverManager) Title ¶
func (m *DriverManager) Title(name string) string
type FullFieldsDriver ¶
type FullFieldsDriver struct {
// contains filtered or unexported fields
}
func NewFullFieldsDriver ¶
func NewFullFieldsDriver(fields []Field) *FullFieldsDriver
func (*FullFieldsDriver) ConfigFields ¶
func (d *FullFieldsDriver) ConfigFields(ignoreNames ...string) []Field
type InputType ¶
type InputType string
const ( LineInput InputType = "line" // 单行文本 MultiInput InputType = "multi" // 多行文本 SelectInput InputType = "select" // 下拉框 CheckboxInput InputType = "checkbox" // 多选 RadioInput InputType = "radio" // 单选 NumberInput InputType = "number" // 数值输入框 Gradient_select InputType = "gradient_select" // 梯度选择 TableInput InputType = "table" // 梯度选择 )
Click to show internal directories.
Click to hide internal directories.