schema

package
v0.0.0-...-d8f751b Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBMetaInfoPrototype         schema.TypedPrototype
	IndexMetaInfoPrototype      schema.TypedPrototype
	CollectionMetaInfoPrototype schema.TypedPrototype
)

Functions

func BuildCollectionMetaInfoNode

func BuildCollectionMetaInfoNode(version int64, primaryKey []string) (ipld.Node, error)

func BuildDBMetaInfoNode

func BuildDBMetaInfoNode(version int64, format string) (ipld.Node, error)

func BuildIndexMetaInfoNode

func BuildIndexMetaInfoNode(version int64) (ipld.Node, error)

Types

type CollectionMetaInfo

type CollectionMetaInfo struct {
	Version    int64
	PrimaryKey []string
}

func UnwrapCollectionMetaInfo

func UnwrapCollectionMetaInfo(node ipld.Node) (*CollectionMetaInfo, error)

func (CollectionMetaInfo) ToNode

func (cmi CollectionMetaInfo) ToNode() (n ipld.Node, err error)

type DBMetaInfo

type DBMetaInfo struct {
	Version int64
	Format  string
}

func UnwrapDBMetaInfo

func UnwrapDBMetaInfo(node ipld.Node) (*DBMetaInfo, error)

func (DBMetaInfo) ToNode

func (dmi DBMetaInfo) ToNode() (n ipld.Node, err error)

type IndexMetaInfo

type IndexMetaInfo struct {
	Version int64
}

func UnwrapIndexMetaInfo

func UnwrapIndexMetaInfo(node ipld.Node) (*IndexMetaInfo, error)

func (IndexMetaInfo) ToNode

func (imi IndexMetaInfo) ToNode() (n ipld.Node, err error)

Jump to

Keyboard shortcuts

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