{"modulePath":"github.com/ProxySQL/orchestrator","version":"v2.1.5+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package http\n\n## Types\n\n```go\ntype APIResponse struct {\n\tCode    APIResponseCode\n\tMessage string\n\tDetails interface{}\n}\n```\nAPIResponse is a response returned as JSON to various requests.\n\n```go\ntype APIResponseCode int\n```\nAPIResponseCode is an OK/ERROR response code\n\n```go\nconst (\n\tERROR APIResponseCode = iota\n\tOK\n)\n```\n\n```go\nfunc (this *APIResponseCode) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (this *APIResponseCode) String() string\n```\n\n```go\ntype HttpAPI struct {\n\tURLPrefix string\n}\n```\n\n```go\nvar API HttpAPI = HttpAPI{}\n```\n\n```go\nfunc (this *HttpAPI) AbortSeed(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAbortSeed instructs agents to abort an active seed\n\n```go\nfunc (this *HttpAPI) AcknowledgeClusterRecoveries(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nClusterInfo provides details of a given cluster\n\n```go\nfunc (this *HttpAPI) AcknowledgeInstanceRecoveries(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nClusterInfo provides details of a given cluster\n\n```go\nfunc (this *HttpAPI) AcknowledgeRecovery(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nClusterInfo provides details of a given cluster\n\n```go\nfunc (this *HttpAPI) ActiveClusterRecovery(params martini.Params, r render.Render, req *http.Request)\n```\nActiveClusterRecovery returns recoveries in-progress for a given cluster\n\n```go\nfunc (this *HttpAPI) Agent(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgent returns complete information of a given agent\n\n```go\nfunc (this *HttpAPI) AgentActiveSeeds(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentActiveSeeds lists active seeds and their state\n\n```go\nfunc (this *HttpAPI) AgentCreateSnapshot(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentCreateSnapshot instructs an agent to create a new snapshot. Agent's DIY implementation.\n\n```go\nfunc (this *HttpAPI) AgentCustomCommand(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpAPI) AgentMountLV(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentMountLV instructs an agent to mount a given volume on the designated mount point\n\n```go\nfunc (this *HttpAPI) AgentMySQLStart(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentMySQLStart starts MySQL service on agent\n\n```go\nfunc (this *HttpAPI) AgentMySQLStop(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentMySQLStop stops MySQL service on agent\n\n```go\nfunc (this *HttpAPI) AgentRecentSeeds(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentRecentSeeds lists recent seeds of a given agent\n\n```go\nfunc (this *HttpAPI) AgentRemoveLV(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentRemoveLV instructs an agent to remove a logical volume\n\n```go\nfunc (this *HttpAPI) AgentSeed(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentSeed completely seeds a host with another host's snapshots. This is a complex operation governed by orchestrator and executed by the two agents involved.\n\n```go\nfunc (this *HttpAPI) AgentSeedDetails(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentSeedDetails provides details of a given seed\n\n```go\nfunc (this *HttpAPI) AgentSeedStates(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentSeedStates returns the breakdown of states (steps) of a given seed\n\n```go\nfunc (this *HttpAPI) AgentUnmount(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgentUnmount instructs an agent to unmount the designated mount point\n\n```go\nfunc (this *HttpAPI) Agents(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAgents provides complete list of registered agents (See [https://github.com/github/orchestrator-agent](https://github.com/github/orchestrator-agent))\n\n```go\nfunc (this *HttpAPI) AsyncDiscover(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nAsyncDiscover issues an asynchronous read on an instance. This is useful for bulk loads of a new set of instances and will not block if the instance is slow to respond or not reachable.\n\n```go\nfunc (this *HttpAPI) Audit(params martini.Params, r render.Render, req *http.Request)\n```\nAudit provides list of audit entries by given page number\n\n```go\nfunc (this *HttpAPI) AuditFailureDetection(params martini.Params, r render.Render, req *http.Request)\n```\nAuditFailureDetection provides list of topology\\_failure\\_detection entries\n\n```go\nfunc (this *HttpAPI) AuditRecovery(params martini.Params, r render.Render, req *http.Request)\n```\nAuditRecovery provides list of topology-recovery entries\n\n```go\nfunc (this *HttpAPI) AuditRecoverySteps(params martini.Params, r render.Render, req *http.Request)\n```\nAuditRecoverySteps returns audited steps of a given recovery\n\n```go\nfunc (this *HttpAPI) AutomatedRecoveryFilters(params martini.Params, r render.Render, req *http.Request)\n```\nAutomatedRecoveryFilters retuens list of clusters which are configured with automated recovery\n\n```go\nfunc (this *HttpAPI) BackendQueryMetricsAggregated(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpAPI) BackendQueryMetricsRaw(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nBackendQueryMetricsRaw returns the raw backend query metrics\n\n```go\nfunc (this *HttpAPI) BeginDowntime(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nBeginDowntime sets a downtime flag with default duration\n\n```go\nfunc (this *HttpAPI) BeginMaintenance(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nBeginMaintenance begins maintenance mode for given instance\n\n```go\nfunc (this *HttpAPI) BlockedRecoveries(params martini.Params, r render.Render, req *http.Request)\n```\nBlockedRecoveries reads list of currently blocked recoveries, optionally filtered by cluster name\n\n```go\nfunc (this *HttpAPI) BulkInstances(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nBulkInstances returns a list of all known instances\n\n```go\nfunc (this *HttpAPI) BulkPromotionRules(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nBulkPromotionRules returns a list of the known promotion rules for each instance\n\n```go\nfunc (this *HttpAPI) Cluster(params martini.Params, r render.Render, req *http.Request)\n```\nCluster provides list of instances in given cluster\n\n```go\nfunc (this *HttpAPI) ClusterByAlias(params martini.Params, r render.Render, req *http.Request)\n```\nClusterByAlias provides list of instances in given cluster\n\n```go\nfunc (this *HttpAPI) ClusterByInstance(params martini.Params, r render.Render, req *http.Request)\n```\nClusterByInstance provides list of instances in cluster an instance belongs to\n\n```go\nfunc (this *HttpAPI) ClusterInfo(params martini.Params, r render.Render, req *http.Request)\n```\nClusterInfo provides details of a given cluster\n\n```go\nfunc (this *HttpAPI) ClusterInfoByAlias(params martini.Params, r render.Render, req *http.Request)\n```\nCluster provides list of instances in given cluster\n\n```go\nfunc (this *HttpAPI) ClusterOSCReplicas(params martini.Params, r render.Render, req *http.Request)\n```\nClusterOSCReplicas returns heuristic list of OSC replicas\n\n```go\nfunc (this *HttpAPI) Clusters(params martini.Params, r render.Render, req *http.Request)\n```\nClusters provides list of known clusters\n\n```go\nfunc (this *HttpAPI) ClustersInfo(params martini.Params, r render.Render, req *http.Request)\n```\nClustersInfo provides list of known clusters, along with some added metadata per cluster\n\n```go\nfunc (this *HttpAPI) DeregisterHostnameUnresolve(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDeregisterHostnameUnresolve deregisters the unresolve name used previously\n\n```go\nfunc (this *HttpAPI) DetachReplica(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDetachReplica corrupts a replica's binlog corrdinates (though encodes it in such way that is reversible), effectively breaking replication\n\n```go\nfunc (this *HttpAPI) DisableGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDisableGTID attempts to disable GTID on a replica, and revert to binlog file:pos\n\n```go\nfunc (this *HttpAPI) Discover(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDiscover issues a synchronous read on an instance\n\n```go\nfunc (this *HttpAPI) DiscoveryMetricsAggregated(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDiscoveryMetricsAggregated will return a single set of aggregated metrics for raw values collected since the specified time.\n\n```go\nfunc (this *HttpAPI) DiscoveryMetricsRaw(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDiscoveryMetricsRaw will return the last X seconds worth of discovery information in time based order as a JSON array\n\n```go\nfunc (this *HttpAPI) DiscoveryQueueMetricsAggregated(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDiscoveryQueueMetricsAggregated returns a single value showing the metrics of the discovery queue over the last N seconds. This is expected to be called every 60 seconds (?) and the config setting of the retention period is currently hard-coded. See go/discovery/ for more information.\n\n```go\nfunc (this *HttpAPI) DiscoveryQueueMetricsRaw(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nDiscoveryQueueMetricsRaw returns the raw queue metrics (active and queued values), data taken secondly for the last N seconds.\n\n```go\nfunc (this *HttpAPI) EnableGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nEnableGTID attempts to enable GTID on a replica\n\n```go\nfunc (this *HttpAPI) EndDowntime(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nEndDowntime terminates downtime (removes downtime flag) for an instance\n\n```go\nfunc (this *HttpAPI) EndMaintenance(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nEndMaintenance terminates maintenance mode\n\n```go\nfunc (this *HttpAPI) EndMaintenanceByInstanceKey(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nEndMaintenanceByInstanceKey terminates maintenance mode for given instance\n\n```go\nfunc (this *HttpAPI) ForceMasterFailover(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nForceMasterFailover fails over a master (even if there's no particular problem with the master)\n\n```go\nfunc (this *HttpAPI) Forget(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nForget removes an instance entry fro backend database\n\n```go\nfunc (this *HttpAPI) GetHeuristicClusterPoolInstances(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nGetHeuristicClusterPoolInstances returns instances belonging to a cluster's pool\n\n```go\nfunc (this *HttpAPI) GetHeuristicClusterPoolInstancesLag(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nGetHeuristicClusterPoolInstances returns instances belonging to a cluster's pool\n\n```go\nfunc (this *HttpAPI) GrabElection(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nGrabElection forcibly grabs leadership. Use with care!!\n\n```go\nfunc (this *HttpAPI) Headers(params martini.Params, r render.Render, req *http.Request)\n```\nHeaders is a self-test call which returns HTTP headers\n\n```go\nfunc (this *HttpAPI) Health(params martini.Params, r render.Render, req *http.Request)\n```\nHealth performs a self test\n\n```go\nfunc (this *HttpAPI) HostnameResolveCache(params martini.Params, r render.Render, req *http.Request)\n```\nHostnameResolveCache shows content of in-memory hostname cache\n\n```go\nfunc (this *HttpAPI) Instance(params martini.Params, r render.Render, req *http.Request)\n```\nInstance reads and returns an instance's details.\n\n```go\nfunc (this *HttpAPI) KillQuery(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nKillQuery kills a query running on a server\n\n```go\nfunc (this *HttpAPI) LBCheck(params martini.Params, r render.Render, req *http.Request)\n```\nLBCheck returns a constant respnse, and this can be used by load balancers that expect a given string.\n\n```go\nfunc (this *HttpAPI) LastPseudoGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nLastPseudoGTID attempts to find the last pseugo-gtid entry in an instance\n\n```go\nfunc (this *HttpAPI) LeaderCheck(params martini.Params, r render.Render, req *http.Request)\n```\nLBCheck returns a constant respnse, and this can be used by load balancers that expect a given string.\n\n```go\nfunc (this *HttpAPI) LongQueries(params martini.Params, r render.Render, req *http.Request)\n```\nLongQueries lists queries running for a long time, on all instances, optionally filtered by arbitrary text\n\n```go\nfunc (this *HttpAPI) Maintenance(params martini.Params, r render.Render, req *http.Request)\n```\nMaintenance provides list of instance under active maintenance\n\n```go\nfunc (this *HttpAPI) MakeCoMaster(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMakeCoMaster attempts to make an instance co-master with its own master\n\n```go\nfunc (this *HttpAPI) MakeLocalMaster(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMakeLocalMaster attempts to make the given instance a local master: take over its master by enslaving its siblings and replicating from its grandparent.\n\n```go\nfunc (this *HttpAPI) MakeMaster(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMakeMaster attempts to make the given instance a master, and match its siblings to be its replicas\n\n```go\nfunc (this *HttpAPI) MasterEquivalent(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMasterEquivalent provides (possibly empty) list of master coordinates equivalent to the given ones\n\n```go\nfunc (this *HttpAPI) MatchBelow(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMatchBelow attempts to move an instance below another via pseudo GTID matching of binlog entries\n\n```go\nfunc (this *HttpAPI) MatchUp(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMatchBelow attempts to move an instance below another via pseudo GTID matching of binlog entries\n\n```go\nfunc (this *HttpAPI) MatchUpReplicas(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMatchUpReplicas attempts to match up all replicas of an instance\n\n```go\nfunc (this *HttpAPI) MoveBelow(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveBelow attempts to move an instance below its supposed sibling\n\n```go\nfunc (this *HttpAPI) MoveBelowGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveBelowGTID attempts to move an instance below another, via GTID\n\n```go\nfunc (this *HttpAPI) MoveEquivalent(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveEquivalent attempts to move an instance below another, baseed on known equivalence master coordinates\n\n```go\nfunc (this *HttpAPI) MoveReplicasGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveReplicasGTID attempts to move an instance below another, via GTID\n\n```go\nfunc (this *HttpAPI) MoveUp(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveUp attempts to move an instance up the topology\n\n```go\nfunc (this *HttpAPI) MoveUpReplicas(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveUpReplicas attempts to move up all replicas of an instance\n\n```go\nfunc (this *HttpAPI) MultiMatchReplicas(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMultiMatchReplicas attempts to match all replicas of a given instance below another, efficiently\n\n```go\nfunc (this *HttpAPI) Problems(params martini.Params, r render.Render, req *http.Request)\n```\nProblems provides list of instances with known problems\n\n```go\nfunc (this *HttpAPI) ReadClusterPoolInstancesMap(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSubmitPoolHostnames (re-)applies the list of hostnames for a given pool\n\n```go\nfunc (this *HttpAPI) ReadReplicationAnalysisChangelog(params martini.Params, r render.Render, req *http.Request)\n```\nReadReplicationAnalysisChangelog lists instances and their analysis changelog\n\n```go\nfunc (this *HttpAPI) ReattachReplica(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nReattachReplica reverts a DetachReplica commands by reassigning the correct binlog coordinates to an instance\n\n```go\nfunc (this *HttpAPI) ReattachReplicaMasterHost(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nReattachReplicaMasterHost reverts a achReplicaMasterHost command by resoting the original master hostname in CHANGE MASTER TO\n\n```go\nfunc (this *HttpAPI) RecentlyActiveClusterRecovery(params martini.Params, r render.Render, req *http.Request)\n```\nRecentlyActiveClusterRecovery returns recoveries in-progress for a given cluster\n\n```go\nfunc (this *HttpAPI) RecentlyActiveInstanceRecovery(params martini.Params, r render.Render, req *http.Request)\n```\nRecentlyActiveClusterRecovery returns recoveries in-progress for a given cluster\n\n```go\nfunc (this *HttpAPI) Recover(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRecover attempts recovery on a given instance\n\n```go\nfunc (this *HttpAPI) RecoverLite(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRecoverLite attempts recovery on a given instance, without executing external processes\n\n```go\nfunc (this *HttpAPI) Reelect(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nReelect causes re-elections for an active node\n\n```go\nfunc (this *HttpAPI) Refresh(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRefresh synchronuously re-reads a topology instance\n\n```go\nfunc (this *HttpAPI) RegisterCandidate(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRegisters promotion preference for given instance\n\n```go\nfunc (this *HttpAPI) RegisterHostnameUnresolve(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRegisterHostnameUnresolve registers the unresolve name to use\n\n```go\nfunc (this *HttpAPI) RegisterRequests(m *martini.ClassicMartini)\n```\nRegisterRequests makes for the de-facto list of known API calls\n\n```go\nfunc (this *HttpAPI) RegroupReplicas(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRegroupReplicas attempts to pick a replica of a given instance and make it take its siblings, using any method possible (GTID, Pseudo-GTID, binlog servers)\n\n```go\nfunc (this *HttpAPI) RegroupReplicasBinlogServers(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRegroupReplicasBinlogServers attempts to pick a replica of a given instance and make it take its siblings, efficiently, using GTID\n\n```go\nfunc (this *HttpAPI) RegroupReplicasGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRegroupReplicasGTID attempts to pick a replica of a given instance and make it take its siblings, efficiently, using GTID\n\n```go\nfunc (this *HttpAPI) RegroupReplicasPseudoGTID(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRegroupReplicas attempts to pick a replica of a given instance and make it take its siblings, efficiently, using pseudo-gtid if necessary\n\n```go\nfunc (this *HttpAPI) ReloadClusterAlias(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nReloadClusterAlias clears in-memory hostname resovle cache\n\n```go\nfunc (this *HttpAPI) ReloadConfiguration(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nReloadConfiguration reloads confiug settings (not all of which will apply after change)\n\n```go\nfunc (this *HttpAPI) RelocateBelow(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRelocateBelow attempts to move an instance below another, orchestrator choosing the best (potentially multi-step) relocation method\n\n```go\nfunc (this *HttpAPI) RelocateReplicas(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRelocates attempts to smartly relocate replicas of a given instance below another\n\n```go\nfunc (this *HttpAPI) ReplicationAnalysis(params martini.Params, r render.Render, req *http.Request)\n```\nReplicationAnalysis retuens list of issues\n\n```go\nfunc (this *HttpAPI) ReplicationAnalysisForCluster(params martini.Params, r render.Render, req *http.Request)\n```\nReplicationAnalysis retuens list of issues\n\n```go\nfunc (this *HttpAPI) ReplicationAnalysisForKey(params martini.Params, r render.Render, req *http.Request)\n```\nReplicationAnalysis retuens list of issues\n\n```go\nfunc (this *HttpAPI) RepointReplicas(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nMoveUpReplicas attempts to move up all replicas of an instance\n\n```go\nfunc (this *HttpAPI) ResetHostnameResolveCache(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nResetHostnameResolveCache clears in-memory hostname resovle cache\n\n```go\nfunc (this *HttpAPI) ResetSlave(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nResetSlave makes a replica forget about its master, effectively breaking the replication\n\n```go\nfunc (this *HttpAPI) Resolve(params martini.Params, r render.Render, req *http.Request)\n```\nResolve tries to resolve hostname and then checks to see if port is open on that host.\n\n```go\nfunc (this *HttpAPI) RestartSlave(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nRestartSlave stops \u0026 starts replication on given instance\n\n```go\nfunc (this *HttpAPI) Search(params martini.Params, r render.Render, req *http.Request)\n```\nSearch provides list of instances matching given search param via various criteria.\n\n```go\nfunc (this *HttpAPI) Seeds(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSeeds retruns all recent seeds\n\n```go\nfunc (this *HttpAPI) SetClusterAliasManualOverride(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSetClusterAlias will change an alias for a given clustername\n\n```go\nfunc (this *HttpAPI) SetReadOnly(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSetReadOnly sets the global read\\_only variable\n\n```go\nfunc (this *HttpAPI) SetWriteable(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSetWriteable clear the global read\\_only variable\n\n```go\nfunc (this *HttpAPI) SkipQuery(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSkipQuery skips a single query on a failed replication instance\n\n```go\nfunc (this *HttpAPI) StartSlave(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nStartSlave starts replication on given instance\n\n```go\nfunc (this *HttpAPI) StatusCheck(params martini.Params, r render.Render, req *http.Request)\n```\nA configurable endpoint that can be for regular status checks or whatever.  While similar to Health() this returns 500 on failure.  This will prevent issues for those that have come to expect a 200 It might be a good idea to deprecate the current Health() behavior and roll this in at some point\n\n```go\nfunc (this *HttpAPI) StopSlave(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nStopSlave stops replication on given instance\n\n```go\nfunc (this *HttpAPI) StopSlaveNicely(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nStopSlaveNicely stops replication on given instance, such that sql thead is aligned with IO thread\n\n```go\nfunc (this *HttpAPI) SubmitPoolInstances(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nSubmitPoolInstances (re-)applies the list of hostnames for a given pool\n\n```go\nfunc (this *HttpAPI) TakeMaster(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nTakeMaster\n\n```go\nfunc (this *HttpAPI) TakeSiblings(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\nTakeSiblings\n\n```go\ntype HttpAgentsAPI struct {\n\tURLPrefix string\n}\n```\n\n```go\nvar AgentsAPI HttpAgentsAPI = HttpAgentsAPI{}\n```\n\n```go\nfunc (this *HttpAgentsAPI) AgentPing(params martini.Params, r render.Render, req *http.Request)\n```\n\n```go\nfunc (this *HttpAgentsAPI) AgentsHosts(params martini.Params, r render.Render, req *http.Request) string\n```\nAgentsHosts provides list of agent host names\n\n```go\nfunc (this *HttpAgentsAPI) AgentsInstances(params martini.Params, r render.Render, req *http.Request) string\n```\nAgentsInstances provides list of assumed MySQL instances (host:port)\n\n```go\nfunc (this *HttpAgentsAPI) GetHostAttributeByAttributeName(params martini.Params, r render.Render, req *http.Request)\n```\nGetHostAttributeByAttributeName returns a host attribute\n\n```go\nfunc (this *HttpAgentsAPI) RegisterRequests(m *martini.ClassicMartini)\n```\nRegisterRequests makes for the de-facto list of known API calls\n\n```go\nfunc (this *HttpAgentsAPI) SetHostAttribute(params martini.Params, r render.Render, req *http.Request)\n```\nSetHostAttribute is a utility method that allows per-host key-value store.\n\n```go\nfunc (this *HttpAgentsAPI) SubmitAgent(params martini.Params, r render.Render)\n```\nSubmitAgent registeres an agent. It is initiated by an agent to register itself.\n\n```go\ntype HttpWeb struct {\n\tURLPrefix string\n}\n```\nHttpWeb is the web requests server, mapping each request to a web page\n\n```go\nvar Web HttpWeb = HttpWeb{}\n```\n\n```go\nfunc (this *HttpWeb) About(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) AccessToken(params martini.Params, r render.Render, req *http.Request, resp http.ResponseWriter, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Agent(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) AgentSeedDetails(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Agents(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Audit(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) AuditFailureDetection(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) AuditRecovery(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) AuditRecoverySteps(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Cluster(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) ClusterByAlias(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) ClusterByInstance(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) ClusterPools(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Clusters(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) ClustersAnalysis(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Discover(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) FAQ(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Home(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Index(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) KeepCalm(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) LongQueries(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) RegisterDebug(m *martini.ClassicMartini)\n```\nRegisterDebug adds handlers for /debug/vars (expvar) and /debug/pprof (net/http/pprof) support\n\n```go\nfunc (this *HttpWeb) RegisterRequests(m *martini.ClassicMartini)\n```\nRegisterRequests makes for the de-facto list of known Web calls\n\n```go\nfunc (this *HttpWeb) Search(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Seeds(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n```go\nfunc (this *HttpWeb) Status(params martini.Params, r render.Render, req *http.Request, user auth.User)\n```\n\n","path":"github.com/ProxySQL/orchestrator/go/http","name":"http","synopsis":"","isRedistributable":true}
