Documentation
¶
Index ¶
- type HostInfo
- type NameAndClusterInfo
- type NameAndHostInfo
- type TableByDBIDAndTableName
- type TableByHostInfoAndDBNameAndTableName
- func (t *TableByHostInfoAndDBNameAndTableName) GetDBName() string
- func (t *TableByHostInfoAndDBNameAndTableName) GetHostIP() string
- func (t *TableByHostInfoAndDBNameAndTableName) GetLoginName() string
- func (t *TableByHostInfoAndDBNameAndTableName) GetPortNum() int
- func (t *TableByHostInfoAndDBNameAndTableName) GetTableName() string
- func (t *TableByHostInfoAndDBNameAndTableName) GetToken() string
- type TablesByDBID
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) GetPortNum ¶
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
func (t *TableByHostInfoAndDBNameAndTableName) GetDBName() string
GetDBName returns the db name
func (*TableByHostInfoAndDBNameAndTableName) GetHostIP ¶ added in v1.1.1
func (t *TableByHostInfoAndDBNameAndTableName) GetHostIP() string
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
func (t *TableByHostInfoAndDBNameAndTableName) GetToken() string
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
Click to show internal directories.
Click to hide internal directories.