common

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

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

func Bool

func Bool(v bool) *bool

Bool ...

func CheckZip

func CheckZip(archive string) (ok bool, err error)

func Float32

func Float32(v float32) *float32

Float32 ...

func Int64

func Int64(v int64) *int64

Int64 ...

func Int64Value

func Int64Value(v *int64) int64

Int64Value ...

func Rounding

func Rounding(num float64, k uint) float64

Rounding ...

func Rounding32

func Rounding32(num float64, k uint) float32

Rounding32 ...

func String

func String(v string) *string

String ...

func StringValue

func StringValue(v *string) string

StringValue ...

func Time

func Time(v time.Time) *time.Time

Time ...

func TimeValue

func TimeValue(v *time.Time) time.Time

TimeValue ...

func Unzip

func Unzip(archive, target string) error

func Zipit

func Zipit(sources []string, target string) error

Types

type AttributeType

type AttributeType string

AttributeType ...

type ConditionType

type ConditionType string

ConditionType ...

type EntityId

type EntityId string

EntityId ...

func NewEntityId

func NewEntityId(s string) *EntityId

NewEntityId ...

func NewEntityIdFromPtr

func NewEntityIdFromPtr(s *string) *EntityId

NewEntityIdFromPtr ...

func (EntityId) Name

func (e EntityId) Name() string

Name ...

func (EntityId) PluginName

func (e EntityId) PluginName() string

PluginName ...

func (EntityId) Ptr

func (e EntityId) Ptr() *EntityId

Ptr ...

func (*EntityId) String

func (e *EntityId) String() string

String ...

func (*EntityId) StringPtr

func (e *EntityId) StringPtr() *string

StringPtr ...

type GinEngine

type GinEngine interface {
	GetEngine() *gin.Engine
}

GinEngine ...

type LogLevel

type LogLevel string

LogLevel ...

type MetricRange

type MetricRange string

func (MetricRange) Ptr

func (m MetricRange) Ptr() *MetricRange

func (MetricRange) String

func (m MetricRange) String() string

type MetricType

type MetricType string

MetricType ...

type RunMode

type RunMode string

RunMode ...

type ScriptLang

type ScriptLang string

ScriptLang ...

type StatusType

type StatusType string

StatusType ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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