Documentation
¶
Index ¶
- Constants
- func IsSelf(mt NodeMeta) bool
- func IsValid(mt NodeMeta) bool
- func NewContext(values map[string]string) context.Context
- func ParseMetaValue(val string, res interface{}) error
- func ToMetaValue(value interface{}) string
- type DataMeta
- type DataNodeMeta
- type Meta
- func (m Meta) Bool(key string) bool
- func (m Meta) Context() context.Context
- func (m Meta) Float32(key string) float32
- func (m Meta) Float64(key string) float64
- func (m Meta) Get(key string) string
- func (m Meta) Int(key string) int
- func (m Meta) Int32(key string) int32
- func (m Meta) Int64(key string) int64
- func (m Meta) Metadata() metadata.Metadata
- func (m Meta) NodeId() string
- func (m Meta) NodeName() string
- func (m Meta) Set(key string, val interface{})
- func (m Meta) SetMetadata(values metadata.Metadata)
- func (m Meta) SetNodeId(id string)
- func (m Meta) SetNodeName(name string)
- func (m Meta) SetValues(values map[string]interface{})
- func (m Meta) Uint32(key string) uint32
- func (m Meta) Uint64(key string) uint64
- type NodeMeta
Constants ¶
View Source
const ( KeyNodeId = "Node-Id" KeyNodeName = "Node-Name" )
View Source
const (
KeyDataId = "Data-Id"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataNodeMeta ¶
type DataNodeMeta interface {
NodeId() string // 节点ID
NodeName() string // 节点名称
DataId() string // 数据ID
Context() context.Context
}
数据节点
Click to show internal directories.
Click to hide internal directories.