metadata

package
v0.0.32-beta.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMetadata

type IMetadata interface {
	// Object 操作指定对象的元数据信息
	Object(objectAPIName string) IObject
}

IMetadata 元数据读写接口

func NewMetadata

func NewMetadata(appCtx *structs.AppCtx) IMetadata

type IObject

type IObject interface {
	// GetFields 读取对象的字段元数据信息列表
	GetFields(ctx context.Context, fields interface{}) (err error)
	// GetField 读取指定字段的元数据信息
	GetField(ctx context.Context, fieldAPIName string, field interface{}) (err error)
}

IObject 对象读写接口

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

func (*Metadata) Object

func (m *Metadata) Object(objectAPIName string) IObject

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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