Documentation
¶
Index ¶
- Constants
- func IsSelf(mt NodeMeta) bool
- func IsValid(mt NodeMeta) bool
- func NewContext(values map[string]string) context.Context
- func ParseFloat32Slice(val string) ([]float32, error)
- func ParseFloat64Slice(val string) ([]float64, error)
- func ParseInt32Slice(val string) ([]int32, error)
- func ParseInt64Slice(val string) ([]int64, error)
- func ParseIntSlice(val string) ([]int, error)
- func ParseMetaValue(val string, res interface{}) error
- func ParseStrSlice(val string) ([]string, 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) Id() 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) Len() int
- func (m *Meta) Metadata() metadata.Metadata
- func (m *Meta) Name() string
- func (m *Meta) Set(key string, val interface{})
- func (m *Meta) SetId(id string)
- func (m *Meta) SetMetadata(values metadata.Metadata)
- func (m *Meta) SetName(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 ¶
func ParseFloat32Slice ¶ added in v1.3.2
func ParseFloat64Slice ¶ added in v1.3.2
func ParseInt32Slice ¶ added in v1.3.2
func ParseInt64Slice ¶ added in v1.3.2
func ParseIntSlice ¶ added in v1.3.2
func ParseStrSlice ¶ added in v1.3.2
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.