Documentation ¶
Index ¶
- Constants
- func Bool(v bool) *bool
- func CheckZip(archive string) (ok bool, err error)
- func Float32(v float32) *float32
- func Int64(v int64) *int64
- func Int64Value(v *int64) int64
- func Rounding(num float64, k uint) float64
- func Rounding32(num float64, k uint) float32
- func String(v string) *string
- func StringValue(v *string) string
- func Time(v time.Time) *time.Time
- func TimeValue(v *time.Time) time.Time
- func Unzip(archive, target string) error
- func Zipit(sources []string, target string) error
- type AttributeType
- type ConditionType
- type EntityId
- type GinEngine
- type LogLevel
- type MetricRange
- type MetricType
- type RunMode
- type ScriptLang
- type StatusType
Constants ¶
View Source
const ( // AttributeString ... AttributeString = AttributeType("string") // AttributeInt ... AttributeInt = AttributeType("int") // AttributeTime ... AttributeTime = AttributeType("time") // AttributeBool ... AttributeBool = AttributeType("bool") // AttributeFloat ... AttributeFloat = AttributeType("float") // AttributeImage ... AttributeImage = AttributeType("image") // AttributeIcon ... AttributeIcon = AttributeType("icon") // AttributePoint ... AttributePoint = AttributeType("point") // AttributeEncrypted ... AttributeEncrypted = AttributeType("encrypted") //DEPRECATED AttributeArray = AttributeType("array") //DEPRECATED AttributeMap = AttributeType("map") AttributeNotice = AttributeType("notice") )
View Source
const ( // ConditionOr ... ConditionOr = ConditionType("or") // ConditionAnd ... ConditionAnd = ConditionType("and") )
View Source
const ( // DebugMode ... DebugMode = RunMode("debug") // ReleaseMode ... ReleaseMode = RunMode("release") // DemoMode DemoMode = RunMode("demo") )
View Source
const ( // MetricTypeLine ... MetricTypeLine = MetricType("line") // MetricTypeBar ... MetricTypeBar = MetricType("bar") // MetricTypeDoughnut ... MetricTypeDoughnut = MetricType("doughnut") // MetricTypeRadar ... MetricTypeRadar = MetricType("radar") // MetricTypePie ... MetricTypePie = MetricType("pie") // MetricTypeHorizontalBar ... MetricTypeHorizontalBar = MetricType("horizontal bar") )
View Source
const ( MetricRange6H = MetricRange("6h") MetricRange12H = MetricRange("12h") MetricRange24H = MetricRange("24h") MetricRange7d = MetricRange("7d") MetricRange30d = MetricRange("30d") MetricRange1m = MetricRange("1m") )
View Source
const ( // LogLevelEmergency ... LogLevelEmergency = LogLevel("Emergency") // LogLevelAlert ... LogLevelAlert = LogLevel("Alert") // LogLevelCritical ... LogLevelCritical = LogLevel("Critical") // LogLevelError ... LogLevelError = LogLevel("Error") // LogLevelWarning ... LogLevelWarning = LogLevel("Warning") // LogLevelNotice ... LogLevelNotice = LogLevel("Notice") // LogLevelInfo ... LogLevelInfo = LogLevel("Info") // LogLevelDebug ... LogLevelDebug = LogLevel("Debug") )
View Source
const ( // Enabled ... Enabled = StatusType("enabled") // Disabled ... Disabled = StatusType("disabled") // Frozen ... Frozen = StatusType("frozen") )
View Source
const ( // ScriptLangTs ... ScriptLangTs = ScriptLang("ts") // ScriptLangCoffee ... ScriptLangCoffee = ScriptLang("coffeescript") // ScriptLangJavascript ... ScriptLangJavascript = ScriptLang("javascript") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricRange ¶
type MetricRange string
func (MetricRange) Ptr ¶
func (m MetricRange) Ptr() *MetricRange
func (MetricRange) String ¶
func (m MetricRange) String() string
Click to show internal directories.
Click to hide internal directories.