mconfig

package
v0.0.0-...-78f9e34 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SOURCEDB              = "source.db"
	SOURCETABLE           = "source.table"
	TARGETDB              = "target.db"
	TARGETTABLE           = "target.table"
	PARALLEL              = "dml.parallel"
	CURSOR                = "dml.cursor.number"
	BATCH                 = "dml.insert.batch"
	TABLECOLUMNFILTER     = "table.column.filter"
	TABLEFINDWHERE        = "table.data.find"
	TABLEAGGREGATE        = "table.data.aggregate"
	TABLECOLUSTERSHARDING = "table.cluster.sharding"
	TABLESHARDKEY         = "table.shard.key"
	TABLESHARDINDEX       = "table.shard.index"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeySets

type KeySets struct {
	Kes   string
	Value string
}

type KeyValue

type KeyValue struct {
	Value   string
	Default string
}

type Param

type Param struct {
	Keys map[string]*KeyValue
	// contains filtered or unexported fields
}

func NewParams

func NewParams() *Param

func (*Param) CheckHostAndTable

func (s *Param) CheckHostAndTable() error

func (*Param) CheckShardIndex

func (s *Param) CheckShardIndex() error

func (*Param) CheckShardKey

func (s *Param) CheckShardKey() error

func (*Param) GetColumnFilter

func (s *Param) GetColumnFilter() (k []*KeySets, err error)

func (*Param) GetKeyVal

func (s *Param) GetKeyVal(key string) string

func (*Param) Load

func (s *Param) Load(log *logrus.Logger) error

Jump to

Keyboard shortcuts

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