Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Topology = Thead{ Col{Name: "id", FieldType: consts.FieldTypeLongLong}, Col{Name: "group_name", FieldType: consts.FieldTypeVarString}, Col{Name: "table_name", FieldType: consts.FieldTypeVarString}, } Database = Thead{ Col{Name: "Database", FieldType: consts.FieldTypeVarString}, } Nodes = Thead{ Col{Name: "node", FieldType: consts.FieldTypeVarString}, Col{Name: "cluster", FieldType: consts.FieldTypeVarString}, Col{Name: "database", FieldType: consts.FieldTypeVarString}, Col{Name: "host", FieldType: consts.FieldTypeVarString}, Col{Name: "port", FieldType: consts.FieldTypeLong}, Col{Name: "user_name", FieldType: consts.FieldTypeVarString}, Col{Name: "weight", FieldType: consts.FieldTypeVarString}, Col{Name: "parameters", FieldType: consts.FieldTypeVarString}, } Users = Thead{ Col{Name: "user_name", FieldType: consts.FieldTypeVarString}, } GroupSequence = Thead{ Col{Name: "type", FieldType: consts.FieldTypeVarString}, Col{Name: "seq_val", FieldType: consts.FieldTypeVarString}, Col{Name: "step", FieldType: consts.FieldTypeVarString}, } SnowflakeSequence = Thead{ Col{Name: "type", FieldType: consts.FieldTypeVarString}, Col{Name: "work_id", FieldType: consts.FieldTypeVarString}, Col{Name: "node_id", FieldType: consts.FieldTypeVarString}, } ShardingRule = Thead{ Col{Name: "name", FieldType: consts.FieldTypeVarString}, Col{Name: "sequence_type", FieldType: consts.FieldTypeVarString}, Col{Name: "db_rules", FieldType: consts.FieldTypeVarString}, Col{Name: "tbl_rules", FieldType: consts.FieldTypeVarString}, Col{Name: "attributes", FieldType: consts.FieldTypeVarString}, } DBRule = Thead{ Col{Name: "table_name", FieldType: consts.FieldTypeVarString}, Col{Name: "column", FieldType: consts.FieldTypeVarString}, Col{Name: "type", FieldType: consts.FieldTypeVarString}, Col{Name: "expr", FieldType: consts.FieldTypeVarString}, Col{Name: "step", FieldType: consts.FieldTypeInt24}, } TableRule = Thead{ Col{Name: "table_name", FieldType: consts.FieldTypeVarString}, Col{Name: "column", FieldType: consts.FieldTypeVarString}, Col{Name: "type", FieldType: consts.FieldTypeVarString}, Col{Name: "expr", FieldType: consts.FieldTypeVarString}, Col{Name: "step", FieldType: consts.FieldTypeVarString}, } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.