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 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 PrototypeType
- type ScriptLang
- type StatusType
Constants ¶
View Source
const ( Alphanum = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" Alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" Number = "0123456789" )
View Source
const ( JsonEngine = CopyEngine("json") GobEngine = CopyEngine("gob") GojayEngine = CopyEngine("gojay") )
View Source
const ( ScriptLangTs = ScriptLang("ts") ScriptLangCoffee = ScriptLang("coffeescript") ScriptLangJavascript = ScriptLang("javascript") )
View Source
const ( FlowElementsPrototypeDefault = FlowElementsPrototypeType("default") FlowElementsPrototypeMessageHandler = FlowElementsPrototypeType("MessageHandler") FlowElementsPrototypeMessageEmitter = FlowElementsPrototypeType("MessageEmitter") FlowElementsPrototypeTask = FlowElementsPrototypeType("Task") FlowElementsPrototypeGateway = FlowElementsPrototypeType("Gateway") FlowElementsPrototypeFlow = FlowElementsPrototypeType("Flow") )
View Source
const ( Enabled = StatusType("enabled") Disabled = StatusType("disabled") Frozen = StatusType("frozen") )
View Source
const ( PrototypeTypeText = PrototypeType("text") PrototypeTypeImage = PrototypeType("image") PrototypeTypeDevice = PrototypeType("device") PrototypeTypeEmpty = PrototypeType("") )
View Source
const ( LogLevelEmergency = LogLevel("Emergency") LogLevelAlert = LogLevel("Alert") LogLevelCritical = LogLevel("Critical") LogLevelError = LogLevel("Error") LogLevelWarning = LogLevel("Warning") LogLevelNotice = LogLevel("Notice") LogLevelInfo = LogLevel("Info") LogLevelDebug = LogLevel("Debug") )
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func ComputeHmac256 ¶
func ComputeHmac256() string
func Copy ¶
func Copy(to, from interface{}, params ...CopyEngine) (err error)
func GetFileSize ¶
func GetFullPath ¶
func GetLinkPath ¶
func HashPassword ¶
func Int64Value ¶ added in v0.0.17
func ParseHmacToken ¶
func RandomString ¶
func StoragePath ¶
func StoragePath() string
func StringValue ¶ added in v0.0.17
Types ¶
type CopyEngine ¶
type CopyEngine string
type DeviceType ¶
type DeviceType string
type FlowElementsPrototypeType ¶
type FlowElementsPrototypeType string
type PrototypeType ¶
type PrototypeType string
type ScriptLang ¶
type ScriptLang string
type StatusType ¶
type StatusType string
Click to show internal directories.
Click to hide internal directories.