Documentation ¶
Index ¶
- Constants
- func DisableMetrics(engine beeorm.Engine)
- func SetTagName(engine beeorm.Engine, tag string)
- type MySQLQuery
- type MySQLQueryType
- type MySQLSLowQuery
- type Options
- type Plugin
- func (p *Plugin) ClearMySQLStats()
- func (p *Plugin) GetCode() string
- func (p *Plugin) GetMySQLQueriesStats(tag string) []MySQLQuery
- func (p *Plugin) GetMySQLSlowQueriesStats(tag string) []*MySQLSLowQuery
- func (p *Plugin) GetTags() []string
- func (p *Plugin) PluginInterfaceEngineCreated(engine beeorm.Engine)
Constants ¶
View Source
const ALTER = MySQLQueryType("ALTER")
View Source
const DELETE = MySQLQueryType("DELETE")
View Source
const INSERT = MySQLQueryType("INSERT")
View Source
const OTHER = MySQLQueryType("OTHER")
View Source
const PluginCode = "github.com/latolukasz/beeorm/plugins/simple_metrics"
View Source
const QUERY = MySQLQueryType("QUERY")
View Source
const SHOW = MySQLQueryType("SHOW")
View Source
const UPDATE = MySQLQueryType("UPDATE")
Variables ¶
This section is empty.
Functions ¶
func DisableMetrics ¶
func DisableMetrics(engine beeorm.Engine)
func SetTagName ¶
func SetTagName(engine beeorm.Engine, tag string)
Types ¶
type MySQLQuery ¶
type MySQLQueryType ¶
type MySQLQueryType string
type MySQLSLowQuery ¶
func (*MySQLSLowQuery) String ¶
func (sq *MySQLSLowQuery) String() string
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) ClearMySQLStats ¶
func (p *Plugin) ClearMySQLStats()
func (*Plugin) GetMySQLQueriesStats ¶
func (p *Plugin) GetMySQLQueriesStats(tag string) []MySQLQuery
func (*Plugin) GetMySQLSlowQueriesStats ¶
func (p *Plugin) GetMySQLSlowQueriesStats(tag string) []*MySQLSLowQuery
func (*Plugin) PluginInterfaceEngineCreated ¶
func (p *Plugin) PluginInterfaceEngineCreated(engine beeorm.Engine)
Click to show internal directories.
Click to hide internal directories.