Documentation ¶
Index ¶
- Constants
- type FakeApi
- func (f *FakeApi) Append(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (f *FakeApi) AppendConfigsQanDefault()
- func (f *FakeApi) AppendInstances(treeInst *proto.Instance, postInsts []*InstanceStatus)
- func (f *FakeApi) AppendInstancesUUID(inst *proto.Instance)
- func (f *FakeApi) AppendPing()
- func (f *FakeApi) Close()
- func (f *FakeApi) URL() string
- func (f *FakeApi) WSURL() string
- type InstanceStatus
Constants ¶
View Source
const WS_SCHEME = "wss://"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeApi ¶
type FakeApi struct {
// contains filtered or unexported fields
}
func NewFakeApi ¶
func NewFakeApi() *FakeApi
func (*FakeApi) AppendConfigsQanDefault ¶
func (f *FakeApi) AppendConfigsQanDefault()
func (*FakeApi) AppendInstances ¶
func (f *FakeApi) AppendInstances(treeInst *proto.Instance, postInsts []*InstanceStatus)
Appends handler for /intances. If maxAgents != 0 this method will return HTTP Forbidden and X-Percona-Agent-Limit header in case of an agent instance POST request
func (*FakeApi) AppendInstancesUUID ¶
func (*FakeApi) AppendPing ¶
func (f *FakeApi) AppendPing()
type InstanceStatus ¶
type InstanceStatus struct {
// contains filtered or unexported fields
}
func NewInstanceStatus ¶
func NewInstanceStatus(inst *proto.Instance, status int, maxInstances uint) *InstanceStatus
Click to show internal directories.
Click to hide internal directories.