fakeapi

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2015 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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) Append

func (f *FakeApi) Append(pattern string, handler func(http.ResponseWriter, *http.Request))

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 (f *FakeApi) AppendInstancesMysql(id uint, mysqlInstance *proto.MySQLInstance)

func (*FakeApi) AppendInstancesMysqlId

func (f *FakeApi) AppendInstancesMysqlId(id uint, mysqlInstance *proto.MySQLInstance)

func (*FakeApi) AppendInstancesServer

func (f *FakeApi) AppendInstancesServer(id uint, serverInstance *proto.ServerInstance)

func (*FakeApi) AppendInstancesServerId

func (f *FakeApi) AppendInstancesServerId(id uint, serverInstance *proto.ServerInstance)

func (*FakeApi) AppendPing

func (f *FakeApi) AppendPing()

func (*FakeApi) AppendSysconfigDefaultMysql

func (f *FakeApi) AppendSysconfigDefaultMysql()

func (*FakeApi) Close

func (f *FakeApi) Close()

func (*FakeApi) URL

func (f *FakeApi) URL() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL