meta

package
v0.0.0-...-5f37ea0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SiteMetaType = iota
	FragmentMetaType
	FieldMetaType
	RouterMetaType
	TableMetaType
	DbMetaType
)

Variables

View Source
var (
	SiteMeta      SiteMeta_
	FragmentMeta  FragmentMeta_
	FieldMeta     FieldMeta_
	RouterMeta    RouterMeta_
	TableMeta     TableMeta_
	DbMeta        DbMeta_
	DefaultDbName string = "ddb"
)

Functions

func Connect

func Connect() *clientv3.Client

func DeleteAll

func DeleteAll(client *clientv3.Client)

func ReadLogi

func ReadLogi(client *clientv3.Client, DbName string, TableName string, metatype MetaType) []byte

func ReadPhys

func ReadPhys(client *clientv3.Client, SiteName string, FragmentName string, metatype MetaType) []byte

func Write

func Write(client *clientv3.Client, metatype MetaType)

Types

type DbMeta_

type DbMeta_ struct {
	Name string
}

type FieldMeta_

type FieldMeta_ struct {
	Name string
	Type string
	Size int64
	IsPK bool
}

logical meta

type FragmentMeta_

type FragmentMeta_ struct {
	Name      string
	SiteName  string
	TableName string
	Info      string
}

type MetaType

type MetaType int64

meta type

type RouterMeta_

type RouterMeta_ struct {
	IsVertical    bool
	VerticalMap   map[string]string //map[col]sitename
	HorizontalMap map[string]string //map[condition]sitename

}

type SiteMeta_

type SiteMeta_ struct {
	Name string
	Ip   string
	Port string
}

physical meta

type TableMeta_

type TableMeta_ struct {
	Name       string
	FieldMetas []FieldMeta_
	RouterMeta RouterMeta_
	Frags      []plan.Frag_
}

Jump to

Keyboard shortcuts

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