namespace

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(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

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