Documentation ¶
Index ¶
- Variables
- type FakeApi
- func (f *FakeApi) Append(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (f *FakeApi) AppendAgents(agent *proto.Agent)
- func (f *FakeApi) AppendAgentsUuid(agent *proto.Agent)
- func (f *FakeApi) AppendConfigsMmDefaultMysql()
- func (f *FakeApi) AppendConfigsMmDefaultServer()
- func (f *FakeApi) AppendConfigsQanDefault()
- func (f *FakeApi) AppendInstancesMysql(id uint, mysqlInstance *proto.MySQLInstance)
- func (f *FakeApi) AppendInstancesMysqlId(id uint, mysqlInstance *proto.MySQLInstance)
- func (f *FakeApi) AppendInstancesServer(id uint, serverInstance *proto.ServerInstance)
- func (f *FakeApi) AppendInstancesServerId(id uint, serverInstance *proto.ServerInstance)
- func (f *FakeApi) AppendPing()
- func (f *FakeApi) AppendSysconfigDefaultMysql()
- func (f *FakeApi) Close()
- func (f *FakeApi) URL() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigMmDefaultMysql = mysql.Config{ Config: mm.Config{ Collect: 1, Report: 60, }, UserStats: false, } ConfigMmDefaultServer = system.Config{ Config: mm.Config{ Collect: 1, Report: 60, }, } ConfigSysconfigDefaultMysql = sysconfigMysql.Config{ Config: sysconfig.Config{ Report: 3600, }, } )
Functions ¶
This section is empty.
Types ¶
type FakeApi ¶
type FakeApi struct {
// contains filtered or unexported fields
}
func NewFakeApi ¶
func NewFakeApi() *FakeApi
func (*FakeApi) AppendAgents ¶
func (f *FakeApi) AppendAgents(agent *proto.Agent)
func (*FakeApi) AppendAgentsUuid ¶
func (f *FakeApi) AppendAgentsUuid(agent *proto.Agent)
func (*FakeApi) AppendConfigsMmDefaultMysql ¶
func (f *FakeApi) AppendConfigsMmDefaultMysql()
func (*FakeApi) AppendConfigsMmDefaultServer ¶
func (f *FakeApi) AppendConfigsMmDefaultServer()
func (*FakeApi) AppendConfigsQanDefault ¶
func (f *FakeApi) AppendConfigsQanDefault()
func (*FakeApi) AppendInstancesMysql ¶
func (*FakeApi) AppendInstancesMysqlId ¶
func (*FakeApi) AppendInstancesServer ¶
func (*FakeApi) AppendInstancesServerId ¶
func (*FakeApi) AppendPing ¶
func (f *FakeApi) AppendPing()
func (*FakeApi) AppendSysconfigDefaultMysql ¶
func (f *FakeApi) AppendSysconfigDefaultMysql()
Click to show internal directories.
Click to hide internal directories.