package
0.0.0-20191121140916-9649366ff4b2
Repository: https://github.com/chronosphereiox/m3.git
Documentation: pkg.go.dev

# Functions

ConvertInstancesProto converts a slice of protobuf `Instance`s to `placement.Instance`s.
NewAddHandler returns a new instance of AddHandler.
NewDeleteAllHandler returns a new instance of DeleteAllHandler.
NewDeleteHandler returns a new instance of DeleteHandler.
NewGetHandler returns a new instance of GetHandler.
NewHandlerOptions is the constructor function for HandlerOptions.
NewInitHandler returns a new instance of InitHandler.
NewReplaceHandler returns a new ReplaceHandler.
RegisterRoutes registers the placement routes.
Service gets a placement service from m3cluster client.
ServiceWithAlgo gets a placement service from m3cluster client and additionally returns an algorithm instance for callers that need fine-grained control over placement updates.

# Constants

AddHTTPMethod is the HTTP method used with this resource.
DeleteAllHTTPMethod is the HTTP method used with this resource.
DeleteHTTPMethod is the HTTP method used with this resource.
GetHTTPMethod is the HTTP method used with this resource.
PlacementPathName is the placement part of the API path.
ReplaceHTTPMethod is the HTTP method for the the replace endpoint.
ServicesPathName is the services part of the API path.

# Variables

DeprecatedM3DBAddURL is the old url for the placement add handler, maintained for backwards compatibility.
DeprecatedM3DBDeleteAllURL is the old url for the handler to delete all placements, maintained for backwards compatibility.
DeprecatedM3DBDeleteURL is the old url for the placement delete handler, maintained for backwards compatibility.
DeprecatedM3DBGetURL is the old url for the placement get handler, maintained for backwards compatibility.
DeprecatedM3DBInitURL is the old url for the placement init handler, maintained for backwards compatibility.
InitHTTPMethod is the HTTP method used with this resource.
M3AggAddURL is the url for the placement add handler (with the POST method) for the M3Agg service.
M3AggDeleteAllURL is the url for the handler to delete all placements (with the DELETE method) for the M3Agg service.
M3AggDeleteURL is the url for the placement delete handler for the M3Agg service.
M3AggGetURL is the url for the placement get handler (with the GET method) for the M3Agg service.
M3AggInitURL is the url for the m3agg placement init handler (with the POST method).
M3AggReplaceURL is the url for the m3aggregator replace handler (method POST).
M3AggServicePlacementPathName is the M3Agg service placement API path.
M3CoordinatorAddURL is the url for the placement add handler (with the POST method) for the M3Coordinator service.
M3CoordinatorDeleteAllURL is the url for the handler to delete all placements (with the DELETE method) for the M3Coordinator service.
M3CoordinatorDeleteURL is the url for the placement delete handler for the M3Coordinator service.
M3CoordinatorGetURL is the url for the placement get handler (with the GET method) for the M3Coordinator service.
M3CoordinatorInitURL is the url for the m3agg placement init handler (with the POST method).
M3CoordinatorReplaceURL is the url for the m3coordinator replace handler (method POST).
M3CoordinatorServicePlacementPathName is the M3Coordinator service placement API path.
M3DBAddURL is the url for the placement add handler (with the POST method) for the M3DB service.
M3DBDeleteAllURL is the url for the handler to delete all placements (with the DELETE method) for the M3DB service.
M3DBDeleteURL is the url for the placement delete handler for the M3DB service.
M3DBGetURL is the url for the placement get handler (with the GET method) for the M3DB service.
M3DBInitURL is the url for the placement init handler, (with the POST method).
M3DBReplaceURL is the url for the m3db replace handler (method POST).
M3DBServicePlacementPathName is the M3DB service placement API path.

# Structs

Handler represents a generic handler for placement endpoints.
HandlerOptions is the options struct for the handler.

# Type aliases

AddHandler is the handler for placement adds.
DeleteAllHandler is the handler to delete all placements.
DeleteHandler is the handler for placement deletes.
GetHandler is the handler for placement gets.
InitHandler is the handler for placement inits.
ReplaceHandler is the type for placement replaces.