consts

package
v1.6.5-rc26 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RESULT_OK = RESULT_UNKNOWN

Variables

View Source
var InvalidLogLevel = errors.New("invalid LogLevel type")
View Source
var InvalidResult = errors.New("invalid Result type")

Functions

This section is empty.

Types

type LogLevel

type LogLevel int32
const (
	LOG_LEVEL_UNKNOWN LogLevel = iota

	LOG_LEVEL__ERROR
	LOG_LEVEL__WARN
	LOG_LEVEL__INFO
	LOG_LEVEL__DEBUG
)

func ParseLogLevelFromLabel

func ParseLogLevelFromLabel(s string) (LogLevel, error)

func ParseLogLevelFromString

func ParseLogLevelFromString(s string) (LogLevel, error)

func (LogLevel) ConstValues

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

func (LogLevel) Int

func (v LogLevel) Int() int

func (LogLevel) Label

func (v LogLevel) Label() string

func (LogLevel) Level

func (v LogLevel) Level() slog.Level

func (LogLevel) MarshalText

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

func (*LogLevel) Scan

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

func (LogLevel) String

func (v LogLevel) String() string

func (LogLevel) TypeName

func (v LogLevel) TypeName() string

func (*LogLevel) UnmarshalText

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

func (LogLevel) Value

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

type Result

type Result int32
const (
	RESULT_UNKNOWN Result = iota
	RESULT__INVALID_MEM_ACCESS
	RESULT__ENV_NOT_FOUND
	RESULT__RESOURCE_NOT_FOUND
	RESULT__RESOURCE_EVENT_NOT_FOUND
	RESULT__KV_DATA_NOT_FOUND
	RESULT__IMPORT_HANDLE_FAILED
	RESULT__HOST_INVOKE_FAILED
)

func ParseResultFromLabel

func ParseResultFromLabel(s string) (Result, error)

func ParseResultFromString

func ParseResultFromString(s string) (Result, error)

func (Result) ConstValues

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

func (Result) Error

func (v Result) Error() string

func (Result) Int

func (v Result) Int() int

func (Result) Int32

func (v Result) Int32() int32

func (Result) Label

func (v Result) Label() string

func (Result) MarshalText

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

func (Result) OK

func (v Result) OK() bool

func (*Result) Scan

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

func (Result) String

func (v Result) String() string

func (Result) TypeName

func (v Result) TypeName() string

func (*Result) UnmarshalText

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

func (Result) Value

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

Jump to

Keyboard shortcuts

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