Documentation ¶
Index ¶
- Constants
- Variables
- func NewVariables(data map[string][]byte) eosc.IVariable
- func RecurseReflect(originVal reflect.Value, targetVal reflect.Value, variables eosc.IVariable) ([]string, error)
- type Builder
- type IVariableResetType
- type Parse
- type Variables
- func (m *Variables) Check(namespace string, variables map[string]string) ([]string, eosc.IVariable, error)
- func (m *Variables) Get(id string) (string, bool)
- func (m *Variables) GetByNamespace(namespace string) (map[string]string, bool)
- func (m *Variables) GetIdsByVariable(variable string) []string
- func (m *Variables) GetVariablesById(id string) []string
- func (m *Variables) Len() int
- func (m *Variables) RemoveRequire(id string)
- func (m *Variables) SetByNamespace(namespace string, variables map[string]string) error
- func (m *Variables) SetVariablesById(id string, variables []string)
- func (m *Variables) Unmarshal(buf []byte, typ reflect.Type) (interface{}, []string, error)
Constants ¶
View Source
const ( //CurrentStatus 普通状态 CurrentStatus = iota //ReadyStatus 预备状态 ReadyStatus //InputStatus 输入状态 InputStatus //EndInputStatus 结束输入状态 EndInputStatus )
Variables ¶
View Source
var ( ErrorVariableNotFound = errors.New("data not found") ErrorUnsupportedKind = errors.New("unsupported kind") )
View Source
var ErrorVariableRequire = errors.New("variable require")
Functions ¶
Types ¶
type IVariableResetType ¶
type Variables ¶
type Variables struct {
// contains filtered or unexported fields
}
func (*Variables) GetByNamespace ¶
func (*Variables) GetIdsByVariable ¶
func (*Variables) GetVariablesById ¶
func (*Variables) RemoveRequire ¶
func (*Variables) SetByNamespace ¶
func (*Variables) SetVariablesById ¶
Click to show internal directories.
Click to hide internal directories.