namespace

package
v0.0.0-...-9741fed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 Metadata

func Metadata(store kv.Store) ([]namespace.Metadata, int, error)

Metadata returns the current metadata in the given store and its version

func NewAddHandler

func NewAddHandler(store kv.Store) http.Handler

NewAddHandler returns a new instance of a namespace add handler.

func NewDeleteHandler

func NewDeleteHandler(store kv.Store) http.Handler

NewDeleteHandler returns a new instance of a namespace delete handler.

func NewGetHandler

func NewGetHandler(store kv.Store) http.Handler

NewGetHandler returns a new instance of a namespace get handler.

func RegisterRoutes

func RegisterRoutes(r *mux.Router, store kv.Store)

RegisterRoutes registers the namespace routes

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler represents a generic handler for namespace endpoints.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL