Documentation ¶
Index ¶
- Constants
- func AddCount(dbname, schameName, tableName string, event eventType, rowsCount int, ...)
- func ClearCountContent(c *CountContent)
- func GetDbList() (data []string)
- func GetSchameList(dbname string) (data []string)
- func GetSchameTableList(dbname string, schema string) (data []string)
- func TableCountFlow_Controller(w http.ResponseWriter, req *http.Request)
- func TableCountIndex_Controller(w http.ResponseWriter, req *http.Request)
- func TableCountSchameList_Controller(w http.ResponseWriter, req *http.Request)
- func TableCountSchameTableList_Controller(w http.ResponseWriter, req *http.Request)
- func TemplatePath(fileName string) string
- type Conn
- func (This *Conn) Close() bool
- func (This *Conn) Commit() (*driver.PluginBinlog, error)
- func (This *Conn) Connect() bool
- func (This *Conn) Del(data *driver.PluginDataType) (*driver.PluginBinlog, error)
- func (This *Conn) GetConnStatus() string
- func (This *Conn) GetParam(p interface{}) (*PluginParam, error)
- func (This *Conn) HeartCheck()
- func (This *Conn) Insert(data *driver.PluginDataType) (*driver.PluginBinlog, error)
- func (This *Conn) Query(data *driver.PluginDataType) (*driver.PluginBinlog, error)
- func (This *Conn) ReConnect() bool
- func (This *Conn) SetConnStatus(status string)
- func (This *Conn) SetParam(p interface{}) (interface{}, error)
- func (This *Conn) Update(data *driver.PluginDataType) (*driver.PluginBinlog, error)
- type CountContent
- func GetFlow(flowType string, dbname, schameName, tableName string) (data []CountContent, err error)
- func GetFlowByDbName(flowType string, dbname string) (data []CountContent, err error)
- func GetFlowBySchema(flowType string, dbname, schameName string) (data []CountContent, err error)
- func NewCountContent() *CountContent
- type CountContentArr
- type CountFlow
- type DoSlice
- type MyConn
- type PluginParam
- type TemplateHeader
Constants ¶
View Source
const ( INSERT eventType = 1 UPDATE eventType = 2 DELETE eventType = 3 DDL eventType = 4 )
View Source
const BIFROST_VERION = "v1.1.0"
View Source
const VERSION = "v1.1.0"
Variables ¶
This section is empty.
Functions ¶
func ClearCountContent ¶
func ClearCountContent(c *CountContent)
func GetSchameList ¶
func GetSchameTableList ¶
func TableCountFlow_Controller ¶
func TableCountFlow_Controller(w http.ResponseWriter, req *http.Request)
func TableCountIndex_Controller ¶
func TableCountIndex_Controller(w http.ResponseWriter, req *http.Request)
func TableCountSchameList_Controller ¶
func TableCountSchameList_Controller(w http.ResponseWriter, req *http.Request)
func TableCountSchameTableList_Controller ¶
func TableCountSchameTableList_Controller(w http.ResponseWriter, req *http.Request)
func TemplatePath ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Del ¶
func (This *Conn) Del(data *driver.PluginDataType) (*driver.PluginBinlog, error)
func (*Conn) GetConnStatus ¶
func (*Conn) GetParam ¶
func (This *Conn) GetParam(p interface{}) (*PluginParam, error)
func (*Conn) HeartCheck ¶
func (This *Conn) HeartCheck()
func (*Conn) Insert ¶
func (This *Conn) Insert(data *driver.PluginDataType) (*driver.PluginBinlog, error)
func (*Conn) Query ¶
func (This *Conn) Query(data *driver.PluginDataType) (*driver.PluginBinlog, error)
func (*Conn) SetConnStatus ¶
func (*Conn) Update ¶
func (This *Conn) Update(data *driver.PluginDataType) (*driver.PluginBinlog, error)
type CountContent ¶
type CountContent struct { Time int64 InsertCount uint64 UpdateCount uint64 DeleteCount uint64 InsertRows uint64 UpdateRows uint64 DeleteRows uint64 DDLCount uint64 }
func GetFlow ¶
func GetFlow(flowType string, dbname, schameName, tableName string) (data []CountContent, err error)
func GetFlowByDbName ¶
func GetFlowByDbName(flowType string, dbname string) (data []CountContent, err error)
func GetFlowBySchema ¶
func GetFlowBySchema(flowType string, dbname, schameName string) (data []CountContent, err error)
func NewCountContent ¶
func NewCountContent() *CountContent
type CountContentArr ¶
type CountContentArr struct { Count uint8 Data []CountContent Content *CountContent }
type CountFlow ¶
type CountFlow struct { TenMinute *CountContentArr Hour *CountContentArr EightHour *CountContentArr Day *CountContentArr Content *CountContent }
type PluginParam ¶
type PluginParam struct {
DbName string
}
type TemplateHeader ¶
type TemplateHeader struct {
Title string
}
Click to show internal directories.
Click to hide internal directories.