2023-08-28 14:51:31 +08:00

37 lines
951 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package constants
const (
DefaultDriverBaseAddress = "localhost:-1"
HostAddress = "127.0.0.1"
ConfigSuffix = ".toml"
ConfigKeyDriver = "driver"
DriverBaseDir = "driver-data" // 驱动相关目录dir
DriverLibraryDir = DriverBaseDir + "/driver-library"
DriverBinDir = DriverBaseDir + "/bin"
DriverRunConfigDir = DriverBaseDir + "/run-config"
DriverMntDir = DriverBaseDir + "/mnt"
DriverDefaultLogPath = "logs/driver.log"
DockerHummingbirdRootDir = "/var/bin/hummingbird"
)
const (
DriverLibTypeDefault = iota + 1
DriverLibTypeAppService
)
const (
DeviceLibraryUploadTypeConfig = 2
// 驱动配置定义key=>value 的type
DriverConfigTypeInt = "int"
DriverConfigTypeFloat = "float"
DriverConfigTypeString = "string"
DriverConfigTypeBool = "bool"
DriverConfigTypeSelect = "select"
DriverConfigTypeObject = "object"
DriverConfigTypeArray = "array"
)