MCPcopy
hub / github.com/uber/aresdb / Register

Method Register

api/data_handler.go:41–43  ·  view source on GitHub ↗

Register registers http handlers.

(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper)

Source from the content-addressed store, hash-verified

39
40// Register registers http handlers.
41func (handler *DataHandler) Register(router *mux.Router, wrappers ...utils.HTTPHandlerWrapper) {
42 router.HandleFunc("/{table}/{shard}", utils.ApplyHTTPWrappers(handler.PostData, wrappers)).Methods(http.MethodPost)
43}
44
45// PostData swagger:route POST /data/{table}/{shard} postData
46// Post new data batch to a existing table shard

Callers 1

startFunction · 0.95

Calls 1

ApplyHTTPWrappersFunction · 0.92

Tested by

no test coverage detected