enums

package
v1.4.3-poc-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVENTTYPEDEFAULT         = "DEFAULT"
	MONITOR_EVENTTYPEDEFAULT = "MONITOR_DEFAULT"
)
View Source
const (
	ApiGroupAccount              = "Account"
	ApiGroupAccountDesc          = "View and manage account"
	ApiGroupAccountRegister      = "Account Register"
	ApiGroupAccountRegisterDesc  = "Account register"
	ApiGroupAccountAccessKey     = "Account Access Key"
	ApiGroupAccountAccessKeyDesc = "View and manage access token"
	ApiGroupApplet               = "Applet"
	ApiGroupAppletDesc           = "View and manage applet"
	ApiGroupConfiguration        = "Configuration"
	ApiGroupConfigurationDesc    = "View global configuration"
	ApiGroupCronjob              = "Cronjob"
	ApiGroupCronjobDesc          = "View and manage system cronjob"
	ApiGroupDeploy               = "Deploy"
	ApiGroupDeployDesc           = "View and manage wasm vm instances"
	ApiGroupEvent                = "Event"
	ApiGroupEventDesc            = "Event handle entry"
	ApiGroupLogin                = "Login"
	ApiGroupLoginDesc            = "Account login"
	ApiGroupMonitor              = "Monitor"
	ApiGroupMonitorDesc          = "View and manage blockchain related monitor"
	ApiGroupOperator             = "Operator"
	ApiGroupOperatorDesc         = "View and manage account blockchain operator"
	ApiGroupProject              = "Project"
	ApiGroupProjectDesc          = "View and manage project"
	ApiGroupProjectConfig        = "Project Config"
	ApiGroupProjectConfigDesc    = "View and manage project config"
	ApiGroupProjectOperator      = "Project Operator"
	ApiGroupProjectOperatorDesc  = "View and manage project blockchain operator"
	ApiGroupPublisher            = "Publisher"
	ApiGroupPublisherDesc        = "View and manage publisher (device)"
	ApiGroupResource             = "Resource"
	ApiGroupResourceDesc         = "View and manage wasm resource"
	ApiGroupStrategy             = "Strategy"
	ApiGroupStrategyDesc         = "View and manage event routing strategy"
	ApiGroupTrafficLimit         = "Traffic Limit"
	ApiGroupTrafficLimitDesc     = "View and manage system traffic"
	ApiGroupWasmLog              = "Wasm Log"
	ApiGroupWasmLogDesc          = "View and manage wasm logs"
)
View Source
const (
	WasmLogMaxLength = 1024
)

Variables

View Source
var InvalidAccessKeyIdentityType = errors.New("invalid AccessKeyIdentityType type")
View Source
var InvalidAccessPermission = errors.New("invalid AccessPermission type")
View Source
var InvalidAccountIdentityType = errors.New("invalid AccountIdentityType type")
View Source
var InvalidAccountRole = errors.New("invalid AccountRole type")
View Source
var InvalidAccountSource = errors.New("invalid AccountSource type")
View Source
var InvalidAccountState = errors.New("invalid AccountState type")
View Source
var InvalidApiOperatorAttr = errors.New("invalid ApiOperatorAttr type")
View Source
var InvalidCacheMode = errors.New("invalid CacheMode type")
View Source
var InvalidConfigType = errors.New("invalid ConfigType type")
View Source
var InvalidDeployCmd = errors.New("invalid DeployCmd type")
View Source
var InvalidFileSystemMode = errors.New("invalid FileSystemMode type")
View Source
var InvalidFlowOperator = errors.New("invalid FlowOperator type")
View Source
var InvalidFlowSink = errors.New("invalid FlowSink type")
View Source
var InvalidInstanceState = errors.New("invalid InstanceState type")
View Source
var InvalidMonitorCmd = errors.New("invalid MonitorCmd type")
View Source
var InvalidMqttQOS = errors.New("invalid MqttQOS type")
View Source
var InvalidPasswordType = errors.New("invalid PasswordType type")
View Source
var InvalidProtocol = errors.New("invalid Protocol type")
View Source
var InvalidTrafficLimitType = errors.New("invalid TrafficLimitType type")
View Source
var InvalidWasmDBDatatype = errors.New("invalid WasmDBDatatype type")
View Source
var InvalidWasmDBDialect = errors.New("invalid WasmDBDialect type")

Functions

This section is empty.

Types

type AccessKeyIdentityType added in v1.4.0

type AccessKeyIdentityType uint8
const (
	ACCESS_KEY_IDENTITY_TYPE_UNKNOWN AccessKeyIdentityType = iota
	ACCESS_KEY_IDENTITY_TYPE__ACCOUNT
	ACCESS_KEY_IDENTITY_TYPE__PUBLISHER
)

func ParseAccessKeyIdentityTypeFromLabel added in v1.4.0

func ParseAccessKeyIdentityTypeFromLabel(s string) (AccessKeyIdentityType, error)

func ParseAccessKeyIdentityTypeFromString added in v1.4.0

func ParseAccessKeyIdentityTypeFromString(s string) (AccessKeyIdentityType, error)

func (AccessKeyIdentityType) ConstValues added in v1.4.0

func (v AccessKeyIdentityType) ConstValues() []enum.IntStringerEnum

func (AccessKeyIdentityType) Int added in v1.4.0

func (v AccessKeyIdentityType) Int() int

func (AccessKeyIdentityType) Label added in v1.4.0

func (v AccessKeyIdentityType) Label() string

func (AccessKeyIdentityType) MarshalText added in v1.4.0

func (v AccessKeyIdentityType) MarshalText() ([]byte, error)

func (*AccessKeyIdentityType) Scan added in v1.4.0

func (v *AccessKeyIdentityType) Scan(src interface{}) error

func (AccessKeyIdentityType) String added in v1.4.0

func (v AccessKeyIdentityType) String() string

func (AccessKeyIdentityType) TypeName added in v1.4.0

func (v AccessKeyIdentityType) TypeName() string

func (*AccessKeyIdentityType) UnmarshalText added in v1.4.0

func (v *AccessKeyIdentityType) UnmarshalText(data []byte) error

func (AccessKeyIdentityType) Value added in v1.4.0

func (v AccessKeyIdentityType) Value() (driver.Value, error)

type AccessPermission added in v1.4.6

type AccessPermission uint8
const (
	ACCESS_PERMISSION_UNKNOWN AccessPermission = iota
	ACCESS_PERMISSION__NO_ACCESS
	ACCESS_PERMISSION__READONLY
	ACCESS_PERMISSION__READ_WRITE
)

func ParseAccessPermissionFromLabel added in v1.4.6

func ParseAccessPermissionFromLabel(s string) (AccessPermission, error)

func ParseAccessPermissionFromString added in v1.4.6

func ParseAccessPermissionFromString(s string) (AccessPermission, error)

func (AccessPermission) ConstValues added in v1.4.6

func (v AccessPermission) ConstValues() []enum.IntStringerEnum

func (AccessPermission) Int added in v1.4.6

func (v AccessPermission) Int() int

func (AccessPermission) Label added in v1.4.6

func (v AccessPermission) Label() string

func (AccessPermission) MarshalText added in v1.4.6

func (v AccessPermission) MarshalText() ([]byte, error)

func (*AccessPermission) Scan added in v1.4.6

func (v *AccessPermission) Scan(src interface{}) error

func (AccessPermission) String added in v1.4.6

func (v AccessPermission) String() string

func (AccessPermission) TypeName added in v1.4.6

func (v AccessPermission) TypeName() string

func (*AccessPermission) UnmarshalText added in v1.4.6

func (v *AccessPermission) UnmarshalText(data []byte) error

func (AccessPermission) Value added in v1.4.6

func (v AccessPermission) Value() (driver.Value, error)

type AccountIdentityType

type AccountIdentityType uint8
const (
	ACCOUNT_IDENTITY_TYPE_UNKNOWN AccountIdentityType = iota
	ACCOUNT_IDENTITY_TYPE__MOBILE
	ACCOUNT_IDENTITY_TYPE__EMAIL
	ACCOUNT_IDENTITY_TYPE__USERNAME
	ACCOUNT_IDENTITY_TYPE__ETHADDRESS
)

func ParseAccountIdentityTypeFromLabel

func ParseAccountIdentityTypeFromLabel(s string) (AccountIdentityType, error)

func ParseAccountIdentityTypeFromString

func ParseAccountIdentityTypeFromString(s string) (AccountIdentityType, error)

func (AccountIdentityType) ConstValues

func (v AccountIdentityType) ConstValues() []enum.IntStringerEnum

func (AccountIdentityType) Int

func (v AccountIdentityType) Int() int

func (AccountIdentityType) Label

func (v AccountIdentityType) Label() string

func (AccountIdentityType) MarshalText

func (v AccountIdentityType) MarshalText() ([]byte, error)

func (*AccountIdentityType) Scan

func (v *AccountIdentityType) Scan(src interface{}) error

func (AccountIdentityType) String

func (v AccountIdentityType) String() string

func (AccountIdentityType) TypeName

func (v AccountIdentityType) TypeName() string

func (*AccountIdentityType) UnmarshalText

func (v *AccountIdentityType) UnmarshalText(data []byte) error

func (AccountIdentityType) Value

func (v AccountIdentityType) Value() (driver.Value, error)

type AccountRole added in v1.1.0

type AccountRole uint8
const (
	ACCOUNT_ROLE_UNKNOWN AccountRole = iota
	ACCOUNT_ROLE__ADMIN
	ACCOUNT_ROLE__DEVELOPER
)

func ParseAccountRoleFromLabel added in v1.1.0

func ParseAccountRoleFromLabel(s string) (AccountRole, error)

func ParseAccountRoleFromString added in v1.1.0

func ParseAccountRoleFromString(s string) (AccountRole, error)

func (AccountRole) ConstValues added in v1.1.0

func (v AccountRole) ConstValues() []enum.IntStringerEnum

func (AccountRole) Int added in v1.1.0

func (v AccountRole) Int() int

func (AccountRole) Label added in v1.1.0

func (v AccountRole) Label() string

func (AccountRole) MarshalText added in v1.1.0

func (v AccountRole) MarshalText() ([]byte, error)

func (*AccountRole) Scan added in v1.1.0

func (v *AccountRole) Scan(src interface{}) error

func (AccountRole) String added in v1.1.0

func (v AccountRole) String() string

func (AccountRole) TypeName added in v1.1.0

func (v AccountRole) TypeName() string

func (*AccountRole) UnmarshalText added in v1.1.0

func (v *AccountRole) UnmarshalText(data []byte) error

func (AccountRole) Value added in v1.1.0

func (v AccountRole) Value() (driver.Value, error)

type AccountSource added in v1.1.0

type AccountSource uint8
const (
	ACCOUNT_SOURCE_UNKNOWN AccountSource = iota
	ACCOUNT_SOURCE__INIT
	ACCOUNT_SOURCE__SUBMIT
)

func ParseAccountSourceFromLabel added in v1.1.0

func ParseAccountSourceFromLabel(s string) (AccountSource, error)

func ParseAccountSourceFromString added in v1.1.0

func ParseAccountSourceFromString(s string) (AccountSource, error)

func (AccountSource) ConstValues added in v1.1.0

func (v AccountSource) ConstValues() []enum.IntStringerEnum

func (AccountSource) Int added in v1.1.0

func (v AccountSource) Int() int

func (AccountSource) Label added in v1.1.0

func (v AccountSource) Label() string

func (AccountSource) MarshalText added in v1.1.0

func (v AccountSource) MarshalText() ([]byte, error)

func (*AccountSource) Scan added in v1.1.0

func (v *AccountSource) Scan(src interface{}) error

func (AccountSource) String added in v1.1.0

func (v AccountSource) String() string

func (AccountSource) TypeName added in v1.1.0

func (v AccountSource) TypeName() string

func (*AccountSource) UnmarshalText added in v1.1.0

func (v *AccountSource) UnmarshalText(data []byte) error

func (AccountSource) Value added in v1.1.0

func (v AccountSource) Value() (driver.Value, error)

type AccountState

type AccountState uint8
const (
	ACCOUNT_STATE_UNKNOWN AccountState = iota
	ACCOUNT_STATE__ENABLED
	ACCOUNT_STATE__DISABLED
)

func ParseAccountStateFromLabel

func ParseAccountStateFromLabel(s string) (AccountState, error)

func ParseAccountStateFromString

func ParseAccountStateFromString(s string) (AccountState, error)

func (AccountState) ConstValues

func (v AccountState) ConstValues() []enum.IntStringerEnum

func (AccountState) Int

func (v AccountState) Int() int

func (AccountState) Label

func (v AccountState) Label() string

func (AccountState) MarshalText

func (v AccountState) MarshalText() ([]byte, error)

func (*AccountState) Scan

func (v *AccountState) Scan(src interface{}) error

func (AccountState) String

func (v AccountState) String() string

func (AccountState) TypeName

func (v AccountState) TypeName() string

func (*AccountState) UnmarshalText

func (v *AccountState) UnmarshalText(data []byte) error

func (AccountState) Value

func (v AccountState) Value() (driver.Value, error)

type ApiOperatorAttr added in v1.4.6

type ApiOperatorAttr uint8
const (
	API_OPERATOR_ATTR_UNKNOWN     ApiOperatorAttr = iota
	API_OPERATOR_ATTR__COMMON                     // common operator for all users with authorization, used for default attr
	API_OPERATOR_ATTR__INTERNAL                   // internal for debugging or maintaining only
	API_OPERATOR_ATTR__ADMIN_ONLY                 // only admin can access
	API_OPERATOR_ATTR__PUBLIC                     // can access without authorization
)

func ParseApiOperatorAttrFromLabel added in v1.4.6

func ParseApiOperatorAttrFromLabel(s string) (ApiOperatorAttr, error)

func ParseApiOperatorAttrFromString added in v1.4.6

func ParseApiOperatorAttrFromString(s string) (ApiOperatorAttr, error)

func (ApiOperatorAttr) ConstValues added in v1.4.6

func (v ApiOperatorAttr) ConstValues() []enum.IntStringerEnum

func (ApiOperatorAttr) Int added in v1.4.6

func (v ApiOperatorAttr) Int() int

func (ApiOperatorAttr) Label added in v1.4.6

func (v ApiOperatorAttr) Label() string

func (ApiOperatorAttr) MarshalText added in v1.4.6

func (v ApiOperatorAttr) MarshalText() ([]byte, error)

func (*ApiOperatorAttr) Scan added in v1.4.6

func (v *ApiOperatorAttr) Scan(src interface{}) error

func (ApiOperatorAttr) String added in v1.4.6

func (v ApiOperatorAttr) String() string

func (ApiOperatorAttr) TypeName added in v1.4.6

func (v ApiOperatorAttr) TypeName() string

func (*ApiOperatorAttr) UnmarshalText added in v1.4.6

func (v *ApiOperatorAttr) UnmarshalText(data []byte) error

func (ApiOperatorAttr) Value added in v1.4.6

func (v ApiOperatorAttr) Value() (driver.Value, error)

type CacheMode added in v1.0.0

type CacheMode uint8
const (
	CACHE_MODE_UNKNOWN CacheMode = iota
	CACHE_MODE__MEMORY
	CACHE_MODE__REDIS
)

func ParseCacheModeFromLabel added in v1.0.0

func ParseCacheModeFromLabel(s string) (CacheMode, error)

func ParseCacheModeFromString added in v1.0.0

func ParseCacheModeFromString(s string) (CacheMode, error)

func (CacheMode) ConstValues added in v1.0.0

func (v CacheMode) ConstValues() []enum.IntStringerEnum

func (CacheMode) Int added in v1.0.0

func (v CacheMode) Int() int

func (CacheMode) Label added in v1.0.0

func (v CacheMode) Label() string

func (CacheMode) MarshalText added in v1.0.0

func (v CacheMode) MarshalText() ([]byte, error)

func (*CacheMode) Scan added in v1.0.0

func (v *CacheMode) Scan(src interface{}) error

func (CacheMode) String added in v1.0.0

func (v CacheMode) String() string

func (CacheMode) TypeName added in v1.0.0

func (v CacheMode) TypeName() string

func (*CacheMode) UnmarshalText added in v1.0.0

func (v *CacheMode) UnmarshalText(data []byte) error

func (CacheMode) Value added in v1.0.0

func (v CacheMode) Value() (driver.Value, error)

type ConfigType added in v1.0.0

type ConfigType uint8
const (
	CONFIG_TYPE_UNKNOWN ConfigType = iota
	CONFIG_TYPE__PROJECT_DATABASE
	CONFIG_TYPE__INSTANCE_CACHE
	CONFIG_TYPE__PROJECT_ENV

	CONFIG_TYPE__PROJECT_MQTT
	CONFIG_TYPE__PROJECT_FLOW
)

func ParseConfigTypeFromLabel added in v1.0.0

func ParseConfigTypeFromLabel(s string) (ConfigType, error)

func ParseConfigTypeFromString added in v1.0.0

func ParseConfigTypeFromString(s string) (ConfigType, error)

func (ConfigType) ConfigType added in v1.1.0

func (v ConfigType) ConfigType() ConfigType

func (ConfigType) ConstValues added in v1.0.0

func (v ConfigType) ConstValues() []enum.IntStringerEnum

func (ConfigType) Int added in v1.0.0

func (v ConfigType) Int() int

func (ConfigType) Label added in v1.0.0

func (v ConfigType) Label() string

func (ConfigType) MarshalText added in v1.0.0

func (v ConfigType) MarshalText() ([]byte, error)

func (*ConfigType) Scan added in v1.0.0

func (v *ConfigType) Scan(src interface{}) error

func (ConfigType) String added in v1.0.0

func (v ConfigType) String() string

func (ConfigType) TypeName added in v1.0.0

func (v ConfigType) TypeName() string

func (*ConfigType) UnmarshalText added in v1.0.0

func (v *ConfigType) UnmarshalText(data []byte) error

func (ConfigType) Value added in v1.0.0

func (v ConfigType) Value() (driver.Value, error)

func (ConfigType) WithContext added in v1.1.0

func (v ConfigType) WithContext(ctx context.Context) context.Context

type DeployCmd

type DeployCmd uint8
const (
	DEPLOY_CMD_UNKNOWN DeployCmd = iota

	DEPLOY_CMD__START  // start wasm vm
	DEPLOY_CMD__HUNGUP // stop wasm vm

)

func ParseDeployCmdFromLabel

func ParseDeployCmdFromLabel(s string) (DeployCmd, error)

func ParseDeployCmdFromString

func ParseDeployCmdFromString(s string) (DeployCmd, error)

func (DeployCmd) ConstValues

func (v DeployCmd) ConstValues() []enum.IntStringerEnum

func (DeployCmd) Int

func (v DeployCmd) Int() int

func (DeployCmd) Label

func (v DeployCmd) Label() string

func (DeployCmd) MarshalText

func (v DeployCmd) MarshalText() ([]byte, error)

func (*DeployCmd) Scan

func (v *DeployCmd) Scan(src interface{}) error

func (DeployCmd) String

func (v DeployCmd) String() string

func (DeployCmd) TypeName

func (v DeployCmd) TypeName() string

func (*DeployCmd) UnmarshalText

func (v *DeployCmd) UnmarshalText(data []byte) error

func (DeployCmd) Value

func (v DeployCmd) Value() (driver.Value, error)

type FileSystemMode added in v1.1.0

type FileSystemMode uint8
const (
	FILE_SYSTEM_MODE_UNKNOWN FileSystemMode = iota
	FILE_SYSTEM_MODE__LOCAL
	FILE_SYSTEM_MODE__S3
)

func ParseFileSystemModeFromLabel added in v1.1.0

func ParseFileSystemModeFromLabel(s string) (FileSystemMode, error)

func ParseFileSystemModeFromString added in v1.1.0

func ParseFileSystemModeFromString(s string) (FileSystemMode, error)

func (FileSystemMode) ConstValues added in v1.1.0

func (v FileSystemMode) ConstValues() []enum.IntStringerEnum

func (FileSystemMode) Int added in v1.1.0

func (v FileSystemMode) Int() int

func (FileSystemMode) Label added in v1.1.0

func (v FileSystemMode) Label() string

func (FileSystemMode) MarshalText added in v1.1.0

func (v FileSystemMode) MarshalText() ([]byte, error)

func (*FileSystemMode) Scan added in v1.1.0

func (v *FileSystemMode) Scan(src interface{}) error

func (FileSystemMode) String added in v1.1.0

func (v FileSystemMode) String() string

func (FileSystemMode) TypeName added in v1.1.0

func (v FileSystemMode) TypeName() string

func (*FileSystemMode) UnmarshalText added in v1.1.0

func (v *FileSystemMode) UnmarshalText(data []byte) error

func (FileSystemMode) Value added in v1.1.0

func (v FileSystemMode) Value() (driver.Value, error)

type FlowOperator added in v1.4.6

type FlowOperator uint8
const (
	FLOW_OPERATOR_UNKNOWN FlowOperator = iota
	FLOW_OPERATOR__FILTER
	FLOW_OPERATOR__MAP
	FLOW_OPERATOR__FLATMAP
	FLOW_OPERATOR__GROUP
	FLOW_OPERATOR__COUNT
)

func ParseFlowOperatorFromLabel added in v1.4.6

func ParseFlowOperatorFromLabel(s string) (FlowOperator, error)

func ParseFlowOperatorFromString added in v1.4.6

func ParseFlowOperatorFromString(s string) (FlowOperator, error)

func (FlowOperator) ConstValues added in v1.4.6

func (v FlowOperator) ConstValues() []enum.IntStringerEnum

func (FlowOperator) Int added in v1.4.6

func (v FlowOperator) Int() int

func (FlowOperator) Label added in v1.4.6

func (v FlowOperator) Label() string

func (FlowOperator) MarshalText added in v1.4.6

func (v FlowOperator) MarshalText() ([]byte, error)

func (*FlowOperator) Scan added in v1.4.6

func (v *FlowOperator) Scan(src interface{}) error

func (FlowOperator) String added in v1.4.6

func (v FlowOperator) String() string

func (FlowOperator) TypeName added in v1.4.6

func (v FlowOperator) TypeName() string

func (*FlowOperator) UnmarshalText added in v1.4.6

func (v *FlowOperator) UnmarshalText(data []byte) error

func (FlowOperator) Value added in v1.4.6

func (v FlowOperator) Value() (driver.Value, error)

type FlowSink added in v1.4.6

type FlowSink uint8
const (
	FLOW_SINK_UNKNOWN FlowSink = iota
	FLOW_SINK__RMDB
	FLOW_SINK__CHAINBLOCK
)

func ParseFlowSinkFromLabel added in v1.4.6

func ParseFlowSinkFromLabel(s string) (FlowSink, error)

func ParseFlowSinkFromString added in v1.4.6

func ParseFlowSinkFromString(s string) (FlowSink, error)

func (FlowSink) ConstValues added in v1.4.6

func (v FlowSink) ConstValues() []enum.IntStringerEnum

func (FlowSink) Int added in v1.4.6

func (v FlowSink) Int() int

func (FlowSink) Label added in v1.4.6

func (v FlowSink) Label() string

func (FlowSink) MarshalText added in v1.4.6

func (v FlowSink) MarshalText() ([]byte, error)

func (*FlowSink) Scan added in v1.4.6

func (v *FlowSink) Scan(src interface{}) error

func (FlowSink) String added in v1.4.6

func (v FlowSink) String() string

func (FlowSink) TypeName added in v1.4.6

func (v FlowSink) TypeName() string

func (*FlowSink) UnmarshalText added in v1.4.6

func (v *FlowSink) UnmarshalText(data []byte) error

func (FlowSink) Value added in v1.4.6

func (v FlowSink) Value() (driver.Value, error)

type InstanceState

type InstanceState uint8

InstanceState presents if wasm was loaded to memory and if it can receive data

const (
	INSTANCE_STATE_UNKNOWN InstanceState = iota

	INSTANCE_STATE__STARTED // ready to receive data
	INSTANCE_STATE__STOPPED // stopped to receive data
)

func ParseInstanceStateFromLabel

func ParseInstanceStateFromLabel(s string) (InstanceState, error)

func ParseInstanceStateFromString

func ParseInstanceStateFromString(s string) (InstanceState, error)

func (InstanceState) ConstValues

func (v InstanceState) ConstValues() []enum.IntStringerEnum

func (InstanceState) Int

func (v InstanceState) Int() int

func (InstanceState) Label

func (v InstanceState) Label() string

func (InstanceState) MarshalText

func (v InstanceState) MarshalText() ([]byte, error)

func (*InstanceState) Scan

func (v *InstanceState) Scan(src interface{}) error

func (InstanceState) String

func (v InstanceState) String() string

func (InstanceState) TypeName

func (v InstanceState) TypeName() string

func (*InstanceState) UnmarshalText

func (v *InstanceState) UnmarshalText(data []byte) error

func (InstanceState) Value

func (v InstanceState) Value() (driver.Value, error)

type MonitorCmd added in v1.2.5

type MonitorCmd uint8
const (
	MONITOR_CMD_UNKNOWN MonitorCmd = iota
	MONITOR_CMD__START
	MONITOR_CMD__PAUSE
)

func ParseMonitorCmdFromLabel added in v1.2.5

func ParseMonitorCmdFromLabel(s string) (MonitorCmd, error)

func ParseMonitorCmdFromString added in v1.2.5

func ParseMonitorCmdFromString(s string) (MonitorCmd, error)

func (MonitorCmd) ConstValues added in v1.2.5

func (v MonitorCmd) ConstValues() []enum.IntStringerEnum

func (MonitorCmd) Int added in v1.2.5

func (v MonitorCmd) Int() int

func (MonitorCmd) Label added in v1.2.5

func (v MonitorCmd) Label() string

func (MonitorCmd) MarshalText added in v1.2.5

func (v MonitorCmd) MarshalText() ([]byte, error)

func (*MonitorCmd) Scan added in v1.2.5

func (v *MonitorCmd) Scan(src interface{}) error

func (MonitorCmd) String added in v1.2.5

func (v MonitorCmd) String() string

func (MonitorCmd) TypeName added in v1.2.5

func (v MonitorCmd) TypeName() string

func (*MonitorCmd) UnmarshalText added in v1.2.5

func (v *MonitorCmd) UnmarshalText(data []byte) error

func (MonitorCmd) Value added in v1.2.5

func (v MonitorCmd) Value() (driver.Value, error)

type MqttQOS

type MqttQOS int8
const (
	MQTT_QOS_UNKNOWN        MqttQOS = iota - 1
	MQTT_QOS__ONCE                  // 0
	MQTT_QOS__AT_LEAST_ONCE         // 1
	MQTT_QOS__ONLY_ONCE             // 2
)

func ParseMqttQOSFromLabel

func ParseMqttQOSFromLabel(s string) (MqttQOS, error)

func ParseMqttQOSFromString

func ParseMqttQOSFromString(s string) (MqttQOS, error)

func (MqttQOS) ConstValues

func (v MqttQOS) ConstValues() []enum.IntStringerEnum

func (MqttQOS) Int

func (v MqttQOS) Int() int

func (MqttQOS) Label

func (v MqttQOS) Label() string

func (MqttQOS) MarshalText

func (v MqttQOS) MarshalText() ([]byte, error)

func (*MqttQOS) Scan

func (v *MqttQOS) Scan(src interface{}) error

func (MqttQOS) String

func (v MqttQOS) String() string

func (MqttQOS) TypeName

func (v MqttQOS) TypeName() string

func (*MqttQOS) UnmarshalText

func (v *MqttQOS) UnmarshalText(data []byte) error

func (MqttQOS) Value

func (v MqttQOS) Value() (driver.Value, error)

type PasswordType

type PasswordType uint8
const (
	PASSWORD_TYPE_UNKNOWN PasswordType = iota
	PASSWORD_TYPE__LOGIN
	PASSWORD_TYPE__PERSONAL_TOKEN
)

func ParsePasswordTypeFromLabel

func ParsePasswordTypeFromLabel(s string) (PasswordType, error)

func ParsePasswordTypeFromString

func ParsePasswordTypeFromString(s string) (PasswordType, error)

func (PasswordType) ConstValues

func (v PasswordType) ConstValues() []enum.IntStringerEnum

func (PasswordType) Int

func (v PasswordType) Int() int

func (PasswordType) Label

func (v PasswordType) Label() string

func (PasswordType) MarshalText

func (v PasswordType) MarshalText() ([]byte, error)

func (*PasswordType) Scan

func (v *PasswordType) Scan(src interface{}) error

func (PasswordType) String

func (v PasswordType) String() string

func (PasswordType) TypeName

func (v PasswordType) TypeName() string

func (*PasswordType) UnmarshalText

func (v *PasswordType) UnmarshalText(data []byte) error

func (PasswordType) Value

func (v PasswordType) Value() (driver.Value, error)

type Protocol

type Protocol int8

Protocol

const (
	PROTOCOL_UNKNOWN   Protocol = iota
	PROTOCOL__TCP               // tcp
	PROTOCOL__UDP               // udp
	PROTOCOL__WEBSOCET          // websocket
	PROTOCOL__HTTP              // http
	PROTOCOL__HTTPS             // https
	PROTOCOL__MQTT              // mqtt
)

func ParseProtocolFromLabel

func ParseProtocolFromLabel(s string) (Protocol, error)

func ParseProtocolFromString

func ParseProtocolFromString(s string) (Protocol, error)

func (Protocol) ConstValues

func (v Protocol) ConstValues() []enum.IntStringerEnum

func (Protocol) Int

func (v Protocol) Int() int

func (Protocol) Label

func (v Protocol) Label() string

func (Protocol) MarshalText

func (v Protocol) MarshalText() ([]byte, error)

func (*Protocol) Scan

func (v *Protocol) Scan(src interface{}) error

func (Protocol) String

func (v Protocol) String() string

func (Protocol) TypeName

func (v Protocol) TypeName() string

func (*Protocol) UnmarshalText

func (v *Protocol) UnmarshalText(data []byte) error

func (Protocol) Value

func (v Protocol) Value() (driver.Value, error)

type TrafficLimitType added in v1.2.5

type TrafficLimitType uint8
const (
	TRAFFIC_LIMIT_TYPE_UNKNOWN TrafficLimitType = iota
	TRAFFIC_LIMIT_TYPE__EVENT
	TRAFFIC_LIMIT_TYPE__BLOCKCHAIN
)

func ParseTrafficLimitTypeFromLabel added in v1.2.5

func ParseTrafficLimitTypeFromLabel(s string) (TrafficLimitType, error)

func ParseTrafficLimitTypeFromString added in v1.2.5

func ParseTrafficLimitTypeFromString(s string) (TrafficLimitType, error)

func (TrafficLimitType) ConstValues added in v1.2.5

func (v TrafficLimitType) ConstValues() []enum.IntStringerEnum

func (TrafficLimitType) Int added in v1.2.5

func (v TrafficLimitType) Int() int

func (TrafficLimitType) Label added in v1.2.5

func (v TrafficLimitType) Label() string

func (TrafficLimitType) MarshalText added in v1.2.5

func (v TrafficLimitType) MarshalText() ([]byte, error)

func (*TrafficLimitType) Scan added in v1.2.5

func (v *TrafficLimitType) Scan(src interface{}) error

func (TrafficLimitType) String added in v1.2.5

func (v TrafficLimitType) String() string

func (TrafficLimitType) TypeName added in v1.2.5

func (v TrafficLimitType) TypeName() string

func (*TrafficLimitType) UnmarshalText added in v1.2.5

func (v *TrafficLimitType) UnmarshalText(data []byte) error

func (TrafficLimitType) Value added in v1.2.5

func (v TrafficLimitType) Value() (driver.Value, error)

type WasmDBDatatype added in v1.1.0

type WasmDBDatatype uint8
const (
	WASM_DB_DATATYPE_UNKNOWN WasmDBDatatype = iota
	WASM_DB_DATATYPE__INT
	WASM_DB_DATATYPE__INT8
	WASM_DB_DATATYPE__INT16
	WASM_DB_DATATYPE__INT32
	WASM_DB_DATATYPE__INT64
	WASM_DB_DATATYPE__UINT
	WASM_DB_DATATYPE__UINT8
	WASM_DB_DATATYPE__UINT16
	WASM_DB_DATATYPE__UINT32
	WASM_DB_DATATYPE__UINT64
	WASM_DB_DATATYPE__FLOAT32
	WASM_DB_DATATYPE__FLOAT64
	WASM_DB_DATATYPE__TEXT
	WASM_DB_DATATYPE__BOOL
	WASM_DB_DATATYPE__TIMESTAMP // use epoch timestamp (integer, UTC)
	WASM_DB_DATATYPE__DECIMAL
	WASM_DB_DATATYPE__NUMERIC
)

func ParseWasmDBDatatypeFromLabel added in v1.1.0

func ParseWasmDBDatatypeFromLabel(s string) (WasmDBDatatype, error)

func ParseWasmDBDatatypeFromString added in v1.1.0

func ParseWasmDBDatatypeFromString(s string) (WasmDBDatatype, error)

func (WasmDBDatatype) ConstValues added in v1.1.0

func (v WasmDBDatatype) ConstValues() []enum.IntStringerEnum

func (WasmDBDatatype) Int added in v1.1.0

func (v WasmDBDatatype) Int() int

func (WasmDBDatatype) Label added in v1.1.0

func (v WasmDBDatatype) Label() string

func (WasmDBDatatype) MarshalText added in v1.1.0

func (v WasmDBDatatype) MarshalText() ([]byte, error)

func (*WasmDBDatatype) Scan added in v1.1.0

func (v *WasmDBDatatype) Scan(src interface{}) error

func (WasmDBDatatype) String added in v1.1.0

func (v WasmDBDatatype) String() string

func (WasmDBDatatype) TypeName added in v1.1.0

func (v WasmDBDatatype) TypeName() string

func (*WasmDBDatatype) UnmarshalText added in v1.1.0

func (v *WasmDBDatatype) UnmarshalText(data []byte) error

func (WasmDBDatatype) Value added in v1.1.0

func (v WasmDBDatatype) Value() (driver.Value, error)

type WasmDBDialect added in v1.1.0

type WasmDBDialect uint8
const (
	WASM_DB_DIALECT_UNKNOWN WasmDBDialect = iota
	WASM_DB_DIALECT__POSTGRES
)

func ParseWasmDBDialectFromLabel added in v1.1.0

func ParseWasmDBDialectFromLabel(s string) (WasmDBDialect, error)

func ParseWasmDBDialectFromString added in v1.1.0

func ParseWasmDBDialectFromString(s string) (WasmDBDialect, error)

func (WasmDBDialect) ConstValues added in v1.1.0

func (v WasmDBDialect) ConstValues() []enum.IntStringerEnum

func (WasmDBDialect) Int added in v1.1.0

func (v WasmDBDialect) Int() int

func (WasmDBDialect) Label added in v1.1.0

func (v WasmDBDialect) Label() string

func (WasmDBDialect) MarshalText added in v1.1.0

func (v WasmDBDialect) MarshalText() ([]byte, error)

func (*WasmDBDialect) Scan added in v1.1.0

func (v *WasmDBDialect) Scan(src interface{}) error

func (WasmDBDialect) String added in v1.1.0

func (v WasmDBDialect) String() string

func (WasmDBDialect) TypeName added in v1.1.0

func (v WasmDBDialect) TypeName() string

func (*WasmDBDialect) UnmarshalText added in v1.1.0

func (v *WasmDBDialect) UnmarshalText(data []byte) error

func (WasmDBDialect) Value added in v1.1.0

func (v WasmDBDialect) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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