Documentation ¶
Index ¶
- Constants
- func CheckPasswordHash(password, hash string) bool
- func ComputeHmac256() string
- func Copy(to, from interface{}, params ...CopyEngine) (err error)
- func CopyFile(f, t string)
- func FileExist(path string) (exist bool)
- func GetFileSize(name string) (int64, error)
- func GetFullPath(name string) string
- func GetLinkPath(name string) string
- func HashPassword(password string) (string, error)
- func Int(v int) *int
- func Int64(v int64) *int64
- func Int64Value(v *int64) int64
- func IntValue(v *int) int
- func ParseHmacToken(tokenString string, key []byte) (jwt.MapClaims, error)
- func RandInt(min int, max int) int
- func RandStr(strSize int, dictionary string) string
- func RandomString(l int) string
- func StaticPath() string
- func StoragePath() string
- func String(v string) *string
- func StringValue(v *string) string
- func Strtomd5(s string) string
- type CopyEngine
- type DeviceType
- type FlowElementsPrototypeType
- type GinEngine
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Warn(format string, args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- type MapDeviceHistoryType
- type PrototypeType
- type ScriptLang
- type StatusType
- type Validation
Constants ¶
View Source
const ( // Alphanum ... Alphanum = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" // Alpha ... Alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" // Number ... Number = "0123456789" )
View Source
const ( // JsonEngine ... JsonEngine = CopyEngine("json") // GobEngine ... GobEngine = CopyEngine("gob") // GojayEngine ... GojayEngine = CopyEngine("gojay") )
View Source
const ( // ScriptLangTs ... ScriptLangTs = ScriptLang("ts") // ScriptLangCoffee ... ScriptLangCoffee = ScriptLang("coffeescript") // ScriptLangJavascript ... ScriptLangJavascript = ScriptLang("javascript") )
View Source
const ( // FlowElementsPrototypeDefault ... FlowElementsPrototypeDefault = FlowElementsPrototypeType("default") // FlowElementsPrototypeMessageHandler ... FlowElementsPrototypeMessageHandler = FlowElementsPrototypeType("MessageHandler") // FlowElementsPrototypeMessageEmitter ... FlowElementsPrototypeMessageEmitter = FlowElementsPrototypeType("MessageEmitter") // FlowElementsPrototypeTask ... FlowElementsPrototypeTask = FlowElementsPrototypeType("Task") // FlowElementsPrototypeGateway ... FlowElementsPrototypeGateway = FlowElementsPrototypeType("Gateway") // FlowElementsPrototypeFlow ... FlowElementsPrototypeFlow = FlowElementsPrototypeType("Flow") )
View Source
const ( // Enabled ... Enabled = StatusType("enabled") // Disabled ... Disabled = StatusType("disabled") // Frozen ... Frozen = StatusType("frozen") )
View Source
const ( // PrototypeTypeText ... PrototypeTypeText = PrototypeType("text") // PrototypeTypeImage ... PrototypeTypeImage = PrototypeType("image") // PrototypeTypeDevice ... PrototypeTypeDevice = PrototypeType("device") // PrototypeTypeEmpty ... PrototypeTypeEmpty = PrototypeType("") )
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 ( // MapDeviceHistoryState ... MapDeviceHistoryState = MapDeviceHistoryType("state") // MapDeviceHistoryOption ... MapDeviceHistoryOption = MapDeviceHistoryType("option") )
Variables ¶
This section is empty.
Functions ¶
func ParseHmacToken ¶
ParseHmacToken ...
Types ¶
type FlowElementsPrototypeType ¶
type FlowElementsPrototypeType string
FlowElementsPrototypeType ...
type Logger ¶ added in v0.1.3
type Logger struct {
// contains filtered or unexported fields
}
Logger ...
type MapDeviceHistoryType ¶ added in v0.2.0
type MapDeviceHistoryType string
MapDeviceHistoryType ...
type Validation ¶ added in v0.0.19
type Validation struct { }
Validation ...
func (Validation) Valid ¶ added in v0.0.19
func (d Validation) Valid() (ok bool, errs []*validation.Error)
Valid ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.