Documentation
¶
Index ¶
- Constants
- type Error
- type FetchBaseChildChild
- type FetchBaseHighlight
- type FetchBaseInfo
- type FetchBaseInfoChild
- type FetchBasePayload
- type FetchDataBaseResult
- type FetchDatabaseHighlight
- type FetchDatabasePayload
- type FetchIdcResult
- type FetchSourcePayload
- type FetchSourceResult
- type FetchTablesHighlight
- type FetchTablesPayload
- type FetchTablesResult
- type JWTPayload
- type LoginPayload
- type LoginResult
- type QueryFetchBaseResult
- type QueryReferResult
- type QueryResultPayload
- type QueryResultTitle
- type QueryResults
- type QueryStatusPayload
- type QueryStatusResult
- type TableQuery
- type Yearning
- func (y *Yearning) FetchDatabases(source string) (baseRes FetchDataBaseResult, err error)
- func (y *Yearning) FetchIDC() (idcRes FetchIdcResult, err error)
- func (y *Yearning) FetchSource(idc, tp string) (sourceRes FetchSourceResult, err error)
- func (y *Yearning) FetchTables(tQ *TableQuery) (tRes FetchTablesResult, err error)
- func (y *Yearning) Login(normal string) (loginRes LoginResult, err error)
- func (y *Yearning) QueryFetchBase(source string) (fetchBase QueryFetchBaseResult, err error)
- func (y *Yearning) QueryRefer(assigned, idc, reason string) (referRes QueryReferResult, err error)
- func (y *Yearning) QueryResults(source, database, sql string) (qRes QueryResults, err error)
- func (y *Yearning) QueryStatus() (statusRes QueryStatusResult, err error)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchBaseChildChild ¶
type FetchBaseChildChild struct { }
type FetchBaseHighlight ¶
type FetchBaseInfo ¶
type FetchBaseInfo struct { Children []FetchBaseInfoChild `json:"children"` Expand string `json:"expand"` Title string `json:"title"` }
type FetchBaseInfoChild ¶
type FetchBaseInfoChild struct { Children []FetchBaseChildChild `json:"children"` Title string `json:"title"` }
type FetchBasePayload ¶
type FetchBasePayload struct { Highlight []FetchBaseHighlight `json:"highlight"` Idc string `json:"idc"` Info []FetchBaseInfo `json:"info"` Sign interface{} `json:"sign"` Status int64 `json:"status"` }
type FetchDataBaseResult ¶
type FetchDataBaseResult struct { Payload FetchDatabasePayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type FetchDatabaseHighlight ¶
type FetchDatabasePayload ¶
type FetchDatabasePayload struct { Highlight []FetchDatabaseHighlight `json:"highlight"` Results []string `json:"results"` }
type FetchIdcResult ¶
type FetchSourcePayload ¶
type FetchSourceResult ¶
type FetchSourceResult struct { Payload FetchSourcePayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type FetchTablesHighlight ¶
type FetchTablesPayload ¶
type FetchTablesPayload struct { Highlight []FetchTablesHighlight `json:"highlight"` Table []string `json:"table"` }
type FetchTablesResult ¶
type FetchTablesResult struct { Payload FetchTablesPayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type JWTPayload ¶
type LoginPayload ¶
type LoginResult ¶
type LoginResult struct { Payload LoginPayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type QueryFetchBaseResult ¶
type QueryFetchBaseResult struct { Payload FetchBasePayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type QueryReferResult ¶
type QueryResultPayload ¶
type QueryResultTitle ¶
type QueryResults ¶
type QueryResults struct { Payload QueryResultPayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type QueryStatusPayload ¶
type QueryStatusResult ¶
type QueryStatusResult struct { Payload QueryStatusPayload `json:"payload"` Code int64 `json:"code"` Text string `json:"text"` }
type TableQuery ¶
type TableQuery struct { IDC string `json:"idc"` Source string `json:"source"` Database string `json:"data_base"` Table string `json:"table"` Reason string `json:"reason"` Delay string `json:"delay"` Assigned string `json:"assigned"` Backup int `json:"backup"` Export int `json:"export"` Tp int `json:"tp"` }
type Yearning ¶
type Yearning struct {
// contains filtered or unexported fields
}
func (*Yearning) FetchDatabases ¶
func (y *Yearning) FetchDatabases(source string) (baseRes FetchDataBaseResult, err error)
FetchDatabases get databases from a source
func (*Yearning) FetchIDC ¶
func (y *Yearning) FetchIDC() (idcRes FetchIdcResult, err error)
FetchIDC get idc list
func (*Yearning) FetchSource ¶
func (y *Yearning) FetchSource(idc, tp string) (sourceRes FetchSourceResult, err error)
FetchSource get sources from an IDC
func (*Yearning) FetchTables ¶
func (y *Yearning) FetchTables(tQ *TableQuery) (tRes FetchTablesResult, err error)
FetchTables fetch tables
func (*Yearning) Login ¶
func (y *Yearning) Login(normal string) (loginRes LoginResult, err error)
Login Login yearning
func (*Yearning) QueryFetchBase ¶
func (y *Yearning) QueryFetchBase(source string) (fetchBase QueryFetchBaseResult, err error)
QueryFetchBase get the databases from a source
func (*Yearning) QueryRefer ¶
func (y *Yearning) QueryRefer(assigned, idc, reason string) (referRes QueryReferResult, err error)
QueryRefer submit a reference
func (*Yearning) QueryResults ¶
func (y *Yearning) QueryResults(source, database, sql string) (qRes QueryResults, err error)
QueryResults get sql results
func (*Yearning) QueryStatus ¶
func (y *Yearning) QueryStatus() (statusRes QueryStatusResult, err error)
QueryStatus the query status
Click to show internal directories.
Click to hide internal directories.