metadata

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostInfo

type HostInfo struct {
	HostIP  string `json:"host_ip" bind:"required"`
	PortNum int    `json:"port_num" bind:"required"`
}

func (*HostInfo) GetHostIP

func (hi *HostInfo) GetHostIP() string

func (*HostInfo) GetPortNum

func (hi *HostInfo) GetPortNum() int

type NameAndClusterInfo added in v1.1.1

type NameAndClusterInfo struct {
	DBName      string `json:"db_name" bind:"required"`
	ClusterID   int    `json:"cluster_id" bind:"required"`
	ClusterType int    `json:"cluster_type" bind:"required"`
}

func (*NameAndClusterInfo) GetClusterID added in v1.1.1

func (nc *NameAndClusterInfo) GetClusterID() int

func (*NameAndClusterInfo) GetClusterType added in v1.1.1

func (nc *NameAndClusterInfo) GetClusterType() int

func (*NameAndClusterInfo) GetDBName added in v1.1.1

func (nc *NameAndClusterInfo) GetDBName() string

type NameAndHostInfo added in v1.1.1

type NameAndHostInfo struct {
	DBName  string `json:"db_name" bind:"required"`
	HostIP  string `json:"host_ip" bind:"required"`
	PortNum int    `json:"port_num" bind:"required"`
}

func (*NameAndHostInfo) GetDBName added in v1.1.1

func (nh *NameAndHostInfo) GetDBName() string

func (*NameAndHostInfo) GetHostIP added in v1.1.1

func (nh *NameAndHostInfo) GetHostIP() string

func (*NameAndHostInfo) GetPortNum added in v1.1.1

func (nh *NameAndHostInfo) GetPortNum() int

type TableByDBIDAndTableName added in v1.1.1

type TableByDBIDAndTableName struct {
	Token     string `json:"token" binding:"required"`
	DBID      int    `json:"db_id" binding:"required"`
	TableName string `json:"table_name" binding:"required"`
	LoginName string `json:"login_name" binding:"required"`
}

TableByDBIDAndTableName is the struct bind to JSON param

func (*TableByDBIDAndTableName) GetDBID added in v1.1.1

func (t *TableByDBIDAndTableName) GetDBID() int

GetDBID returns the db id

func (*TableByDBIDAndTableName) GetLoginName added in v1.1.1

func (t *TableByDBIDAndTableName) GetLoginName() string

GetLoginName returns the login name

func (*TableByDBIDAndTableName) GetTableName added in v1.1.1

func (t *TableByDBIDAndTableName) GetTableName() string

GetTableName returns the table name

func (*TableByDBIDAndTableName) GetToken added in v1.1.1

func (t *TableByDBIDAndTableName) GetToken() string

GetToken returns the token

type TableByHostInfoAndDBNameAndTableName added in v1.1.1

type TableByHostInfoAndDBNameAndTableName struct {
	Token     string `json:"token" binding:"required"`
	HostIP    string `json:"host_ip" binding:"required"`
	PortNum   int    `json:"port_num" binding:"required"`
	DBName    string `json:"db_name" binding:"required"`
	TableName string `json:"table_name" binding:"required"`
	LoginName string `json:"login_name" binding:"required"`
}

TableByHostInfoAndDBNameAndTableName is the struct bind to JSON param

func (*TableByHostInfoAndDBNameAndTableName) GetDBName added in v1.1.1

GetDBName returns the db name

func (*TableByHostInfoAndDBNameAndTableName) GetHostIP added in v1.1.1

GetHostIP returns the host ip

func (*TableByHostInfoAndDBNameAndTableName) GetLoginName added in v1.1.1

func (t *TableByHostInfoAndDBNameAndTableName) GetLoginName() string

GetLoginName returns the login name

func (*TableByHostInfoAndDBNameAndTableName) GetPortNum added in v1.1.1

func (t *TableByHostInfoAndDBNameAndTableName) GetPortNum() int

GetPortNum returns the port num

func (*TableByHostInfoAndDBNameAndTableName) GetTableName added in v1.1.1

func (t *TableByHostInfoAndDBNameAndTableName) GetTableName() string

GetTableName returns the table name

func (*TableByHostInfoAndDBNameAndTableName) GetToken added in v1.1.1

GetToken returns the token

type TablesByDBID added in v1.1.1

type TablesByDBID struct {
	Token     string `json:"token" binding:"required"`
	DBID      int    `json:"db_id" binding:"required"`
	LoginName string `json:"login_name" binding:"required"`
}

TablesByDBID is the struct bind to JSON param

func (*TablesByDBID) GetDBID added in v1.1.1

func (t *TablesByDBID) GetDBID() int

GetDBID returns the db id

func (*TablesByDBID) GetLoginName added in v1.1.1

func (t *TablesByDBID) GetLoginName() string

GetLoginName returns the login name

func (*TablesByDBID) GetToken added in v1.1.1

func (t *TablesByDBID) GetToken() string

GetToken returns the token

Jump to

Keyboard shortcuts

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