Documentation ¶
Index ¶
- type APIResponse
- type APIResponseCode
- type HttpAPI
- func (this *HttpAPI) Audit(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) BeginMaintenance(params martini.Params, r render.Render)
- func (this *HttpAPI) Cluster(params martini.Params, r render.Render)
- func (this *HttpAPI) Clusters(params martini.Params, r render.Render)
- func (this *HttpAPI) Discover(params martini.Params, r render.Render)
- func (this *HttpAPI) EndMaintenance(params martini.Params, r render.Render)
- func (this *HttpAPI) EndMaintenanceByInstanceKey(params martini.Params, r render.Render)
- func (this *HttpAPI) Forget(params martini.Params, r render.Render)
- func (this *HttpAPI) Instance(params martini.Params, r render.Render)
- func (this *HttpAPI) Maintenance(params martini.Params, r render.Render)
- func (this *HttpAPI) MoveBelow(params martini.Params, r render.Render)
- func (this *HttpAPI) MoveUp(params martini.Params, r render.Render)
- func (this *HttpAPI) Problems(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) Refresh(params martini.Params, r render.Render)
- func (this *HttpAPI) RegisterRequests(m *martini.ClassicMartini)
- func (this *HttpAPI) Search(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) StartSlave(params martini.Params, r render.Render)
- func (this *HttpAPI) StopSlave(params martini.Params, r render.Render)
- type HttpWeb
- func (this *HttpWeb) About(params martini.Params, r render.Render)
- func (this *HttpWeb) Audit(params martini.Params, r render.Render)
- func (this *HttpWeb) Cluster(params martini.Params, r render.Render)
- func (this *HttpWeb) Discover(params martini.Params, r render.Render)
- func (this *HttpWeb) FAQ(params martini.Params, r render.Render)
- func (this *HttpWeb) Home(params martini.Params, r render.Render)
- func (this *HttpWeb) RegisterRequests(m *martini.ClassicMartini)
- func (this *HttpWeb) Search(params martini.Params, r render.Render, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Code APIResponseCode Message string Details interface{} }
APIResponse is a response returned as JSON to various requests.
type APIResponseCode ¶
type APIResponseCode int
APIResponseCode is an OK/ERROR response code
const ( ERROR APIResponseCode = iota OK )
func (*APIResponseCode) MarshalJSON ¶
func (this *APIResponseCode) MarshalJSON() ([]byte, error)
func (*APIResponseCode) String ¶
func (this *APIResponseCode) String() string
type HttpAPI ¶
type HttpAPI struct{}
func (*HttpAPI) BeginMaintenance ¶
BeginMaintenance begins maintenance mode for given instance
func (*HttpAPI) EndMaintenance ¶
EndMaintenance terminates maintenance mode
func (*HttpAPI) EndMaintenanceByInstanceKey ¶
EndMaintenanceByInstanceKey terminates maintenance mode for given instance
func (*HttpAPI) Maintenance ¶
Maintenance provides list of instance under active maintenance
func (*HttpAPI) RegisterRequests ¶
func (this *HttpAPI) RegisterRequests(m *martini.ClassicMartini)
RegisterRequests makes for the de-facto list of known API calls
func (*HttpAPI) Search ¶
Search provides list of instances matching given search param via various criteria.
func (*HttpAPI) StartSlave ¶
StartSlave starts replication on given instance
type HttpWeb ¶
type HttpWeb struct{}
HttpWeb is the web requests server, mapping each request to a web page
func (*HttpWeb) RegisterRequests ¶
func (this *HttpWeb) RegisterRequests(m *martini.ClassicMartini)
RegisterRequests makes for the de-facto list of known Web calls