Documentation ¶
Index ¶
- Constants
- Variables
- func Metadata(store kv.Store) ([]namespace.Metadata, int, error)
- func NewAddHandler(client clusterclient.Client) http.Handler
- func NewDeleteHandler(client clusterclient.Client) http.Handler
- func NewGetHandler(client clusterclient.Client) http.Handler
- func RegisterRoutes(r *mux.Router, client clusterclient.Client)
- type Handler
Constants ¶
View Source
const (
// AddURL is the url for the namespace add handler (with the POST method).
AddURL = "/namespace/add"
)
View Source
const (
// GetURL is the url for the namespace get handler (with the GET method).
GetURL = "/namespace"
)
View Source
const (
// M3DBNodeNamespacesKey is the KV key that holds namespaces
M3DBNodeNamespacesKey = "m3db.node.namespaces"
)
Variables ¶
View Source
var ( // DeleteURL is the url for the namespace delete handler (with the DELETE method). DeleteURL = fmt.Sprintf("/namespace/{%s}", namespaceIDVar) )
Functions ¶
func NewAddHandler ¶
func NewAddHandler(client clusterclient.Client) http.Handler
NewAddHandler returns a new instance of a namespace add handler.
func NewDeleteHandler ¶
func NewDeleteHandler(client clusterclient.Client) http.Handler
NewDeleteHandler returns a new instance of a namespace delete handler.
func NewGetHandler ¶
func NewGetHandler(client clusterclient.Client) http.Handler
NewGetHandler returns a new instance of a namespace get handler.
func RegisterRoutes ¶
func RegisterRoutes(r *mux.Router, client clusterclient.Client)
RegisterRoutes registers the namespace routes
Types ¶
Click to show internal directories.
Click to hide internal directories.