Documentation ¶
Index ¶
- func GetDBName(sql string) (string, error)
- func GetTableNames(sql string) ([]string, error)
- type DBRange
- func (dr *DBRange) GetConfig() (depquery.Config, error)
- func (dr *DBRange) GetDBID() int
- func (dr *DBRange) GetEndTime() string
- func (dr *DBRange) GetLimit() int
- func (dr *DBRange) GetLoginName() string
- func (dr *DBRange) GetOffset() int
- func (dr *DBRange) GetStartTime() string
- func (dr *DBRange) GetToken() string
- type HostInfoRange
- func (hir *HostInfoRange) GetConfig() (depquery.Config, error)
- func (hir *HostInfoRange) GetEndTime() string
- func (hir *HostInfoRange) GetHostIP() string
- func (hir *HostInfoRange) GetLimit() int
- func (hir *HostInfoRange) GetLoginName() string
- func (hir *HostInfoRange) GetOffset() int
- func (hir *HostInfoRange) GetPortNum() int
- func (hir *HostInfoRange) GetStartTime() string
- func (hir *HostInfoRange) GetToken() string
- type MySQLClusterRange
- func (mcr *MySQLClusterRange) GetConfig() (depquery.Config, error)
- func (mcr *MySQLClusterRange) GetEndTime() string
- func (mcr *MySQLClusterRange) GetLimit() int
- func (mcr *MySQLClusterRange) GetLoginName() string
- func (mcr *MySQLClusterRange) GetMySQLClusterID() int
- func (mcr *MySQLClusterRange) GetOffset() int
- func (mcr *MySQLClusterRange) GetStartTime() string
- func (mcr *MySQLClusterRange) GetToken() string
- type MySQLServerRange
- func (msr *MySQLServerRange) GetConfig() (depquery.Config, error)
- func (msr *MySQLServerRange) GetEndTime() string
- func (msr *MySQLServerRange) GetLimit() int
- func (msr *MySQLServerRange) GetLoginName() string
- func (msr *MySQLServerRange) GetMySQLServerID() int
- func (msr *MySQLServerRange) GetOffset() int
- func (msr *MySQLServerRange) GetStartTime() string
- func (msr *MySQLServerRange) GetToken() string
- type SQLIDRange
- func (sir *SQLIDRange) GetConfig() (depquery.Config, error)
- func (sir *SQLIDRange) GetEndTime() string
- func (sir *SQLIDRange) GetLimit() int
- func (sir *SQLIDRange) GetLoginName() string
- func (sir *SQLIDRange) GetMySQLServerID() int
- func (sir *SQLIDRange) GetOffset() int
- func (sir *SQLIDRange) GetSQLID() string
- func (sir *SQLIDRange) GetStartTime() string
- func (sir *SQLIDRange) GetToken() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTableNames ¶
GetTableName gets the table names from the given sql
Types ¶
type DBRange ¶ added in v1.1.1
type DBRange struct { Token string `json:"token" binding:"required"` DBID int `json:"db_id" bind:"required"` StartTime string `json:"start_time" bind:"required"` EndTime string `json:"end_time" bind:"required"` Limit int `json:"limit" bind:"required"` Offset int `json:"offset" bind:"required"` LoginName string `json:"login_name" bind:"required"` }
func (*DBRange) GetEndTime ¶ added in v1.1.1
GetEndTime returns the end time
func (*DBRange) GetLoginName ¶ added in v1.1.1
GetLoginName returns the login name
func (*DBRange) GetStartTime ¶ added in v1.1.1
GetStartTime returns the start time
type HostInfoRange ¶ added in v1.1.1
type HostInfoRange struct { Token string `json:"token" binding:"required"` HostIP string `json:"host_ip" bind:"required"` PortNum int `json:"port_num" bind:"required"` StartTime string `json:"start_time" bind:"required"` EndTime string `json:"end_time" bind:"required"` Limit int `json:"limit" bind:"required"` Offset int `json:"offset" bind:"required"` LoginName string `json:"login_name" bind:"required"` }
func (*HostInfoRange) GetConfig ¶ added in v1.1.1
func (hir *HostInfoRange) GetConfig() (depquery.Config, error)
GetConfig gets the configuration
func (*HostInfoRange) GetEndTime ¶ added in v1.1.1
func (hir *HostInfoRange) GetEndTime() string
GetEndTime returns the end time
func (*HostInfoRange) GetHostIP ¶ added in v1.1.1
func (hir *HostInfoRange) GetHostIP() string
GetHostIP returns the host ip
func (*HostInfoRange) GetLimit ¶ added in v1.1.1
func (hir *HostInfoRange) GetLimit() int
GetLimit returns the limit
func (*HostInfoRange) GetLoginName ¶ added in v1.1.1
func (hir *HostInfoRange) GetLoginName() string
GetLoginName returns the login name
func (*HostInfoRange) GetOffset ¶ added in v1.1.1
func (hir *HostInfoRange) GetOffset() int
GetOffset returns the offset
func (*HostInfoRange) GetPortNum ¶ added in v1.1.1
func (hir *HostInfoRange) GetPortNum() int
GetPortNum returns the port number
func (*HostInfoRange) GetStartTime ¶ added in v1.1.1
func (hir *HostInfoRange) GetStartTime() string
GetStartTime returns the start time
func (*HostInfoRange) GetToken ¶ added in v1.1.1
func (hir *HostInfoRange) GetToken() string
GetToken returns the token
type MySQLClusterRange ¶ added in v1.1.1
type MySQLClusterRange struct { Token string `json:"token" binding:"required"` MySQLClusterID int `json:"mysql_cluster_id" bind:"required"` StartTime string `json:"start_time" bind:"required"` EndTime string `json:"end_time" bind:"required"` Limit int `json:"limit" bind:"required"` Offset int `json:"offset" bind:"required"` LoginName string `json:"login_name" bind:"required"` }
func (*MySQLClusterRange) GetConfig ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetConfig() (depquery.Config, error)
GetConfig gets the configuration
func (*MySQLClusterRange) GetEndTime ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetEndTime() string
GetEndTime returns the end time
func (*MySQLClusterRange) GetLimit ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetLimit() int
GetLimit returns the limit
func (*MySQLClusterRange) GetLoginName ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetLoginName() string
GetLoginName returns the login name
func (*MySQLClusterRange) GetMySQLClusterID ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetMySQLClusterID() int
GetMySQLClusterID() returns the mysql cluster id
func (*MySQLClusterRange) GetOffset ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetOffset() int
GetOffset returns the offset
func (*MySQLClusterRange) GetStartTime ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetStartTime() string
GetStartTime returns the start time
func (*MySQLClusterRange) GetToken ¶ added in v1.1.1
func (mcr *MySQLClusterRange) GetToken() string
GetToken returns the token
type MySQLServerRange ¶ added in v1.1.1
type MySQLServerRange struct { Token string `json:"token" binding:"required"` MySQLServerID int `json:"mysql_server_id" bind:"required"` StartTime string `json:"start_time" bind:"required"` EndTime string `json:"end_time" bind:"required"` Limit int `json:"limit" bind:"required"` Offset int `json:"offset" bind:"required"` LoginName string `json:"login_name" bind:"required"` }
func (*MySQLServerRange) GetConfig ¶ added in v1.1.1
func (msr *MySQLServerRange) GetConfig() (depquery.Config, error)
GetConfig gets the configuration
func (*MySQLServerRange) GetEndTime ¶ added in v1.1.1
func (msr *MySQLServerRange) GetEndTime() string
GetEndTime returns the end time
func (*MySQLServerRange) GetLimit ¶ added in v1.1.1
func (msr *MySQLServerRange) GetLimit() int
GetLimit returns the limit
func (*MySQLServerRange) GetLoginName ¶ added in v1.1.1
func (msr *MySQLServerRange) GetLoginName() string
GetLoginName returns the login name
func (*MySQLServerRange) GetMySQLServerID ¶ added in v1.1.1
func (msr *MySQLServerRange) GetMySQLServerID() int
GetMySQLServerID returns the mysql server id
func (*MySQLServerRange) GetOffset ¶ added in v1.1.1
func (msr *MySQLServerRange) GetOffset() int
GetOffset returns the offset
func (*MySQLServerRange) GetStartTime ¶ added in v1.1.1
func (msr *MySQLServerRange) GetStartTime() string
GetStartTime returns the start time
func (*MySQLServerRange) GetToken ¶ added in v1.1.1
func (msr *MySQLServerRange) GetToken() string
GetToken returns the token
type SQLIDRange ¶ added in v1.1.1
type SQLIDRange struct { Token string `json:"token" binding:"required"` MySQLServerID int `json:"mysql_server_id" bind:"required"` SQLID string `json:"sql_id" bind:"required"` StartTime string `json:"start_time" bind:"required"` EndTime string `json:"end_time" bind:"required"` Limit int `json:"limit" bind:"required"` Offset int `json:"offset" bind:"required"` LoginName string `json:"login_name" bind:"required"` }
func (*SQLIDRange) GetConfig ¶ added in v1.1.1
func (sir *SQLIDRange) GetConfig() (depquery.Config, error)
GetConfig gets the configuration
func (*SQLIDRange) GetEndTime ¶ added in v1.1.1
func (sir *SQLIDRange) GetEndTime() string
GetEndTime returns the end time
func (*SQLIDRange) GetLimit ¶ added in v1.1.1
func (sir *SQLIDRange) GetLimit() int
GetLimit returns the limit
func (*SQLIDRange) GetLoginName ¶ added in v1.1.1
func (sir *SQLIDRange) GetLoginName() string
GetLoginName returns the login name
func (*SQLIDRange) GetMySQLServerID ¶ added in v1.1.1
func (sir *SQLIDRange) GetMySQLServerID() int
GetMySQLServerID returns the mysql server id
func (*SQLIDRange) GetOffset ¶ added in v1.1.1
func (sir *SQLIDRange) GetOffset() int
GetOffset returns the offset
func (*SQLIDRange) GetSQLID ¶ added in v1.1.1
func (sir *SQLIDRange) GetSQLID() string
GetSQLID returns the sql id
func (*SQLIDRange) GetStartTime ¶ added in v1.1.1
func (sir *SQLIDRange) GetStartTime() string
GetStartTime returns the start time
func (*SQLIDRange) GetToken ¶ added in v1.1.1
func (sir *SQLIDRange) GetToken() string
GetToken returns the token