Documentation ¶
Index ¶
- Constants
- func NewConfigGetBootstrappersHandler(client clusterclient.Client, instrumentOpts instrument.Options) http.Handler
- func NewConfigSetBootstrappersHandler(client clusterclient.Client, instrumentOpts instrument.Options) http.Handler
- func NewCreateHandler(client clusterclient.Client, cfg config.Configuration, ...) (http.Handler, error)
- func RegisterRoutes(r *mux.Router, client clusterclient.Client, cfg config.Configuration, ...) error
- type Handler
Constants ¶
View Source
const ( // ConfigGetBootstrappersURL is the url for the database create handler. ConfigGetBootstrappersURL = handler.RoutePrefixV1 + "/database/config/bootstrappers" // ConfigGetBootstrappersHTTPMethod is the HTTP method used with this resource. ConfigGetBootstrappersHTTPMethod = http.MethodGet )
View Source
const ( // ConfigSetBootstrappersURL is the url for the database create handler. ConfigSetBootstrappersURL = handler.RoutePrefixV1 + "/database/config/bootstrappers" // ConfigSetBootstrappersHTTPMethod is the HTTP method used with this resource. ConfigSetBootstrappersHTTPMethod = http.MethodPost )
View Source
const ( // CreateURL is the URL for the database create handler. CreateURL = handler.RoutePrefixV1 + "/database/create" // CreateNamespaceURL is the URL for the database namespace create handler. CreateNamespaceURL = handler.RoutePrefixV1 + "/database/namespace/create" // CreateHTTPMethod is the HTTP method used with the create database resource. CreateHTTPMethod = http.MethodPost // CreateNamespaceHTTPMethod is the HTTP method used with the create database namespace resource. CreateNamespaceHTTPMethod = http.MethodPost // DefaultLocalHostID is the default local host ID when creating a database. DefaultLocalHostID = "m3db_local" // DefaultLocalIsolationGroup is the default isolation group when creating a // local database. DefaultLocalIsolationGroup = "local" // DefaultLocalZone is the default zone when creating a local database. DefaultLocalZone = "embedded" )
Variables ¶
This section is empty.
Functions ¶
func NewConfigGetBootstrappersHandler ¶ added in v0.5.0
func NewConfigGetBootstrappersHandler( client clusterclient.Client, instrumentOpts instrument.Options, ) http.Handler
NewConfigGetBootstrappersHandler returns a new instance of a database create handler.
func NewConfigSetBootstrappersHandler ¶ added in v0.5.0
func NewConfigSetBootstrappersHandler( client clusterclient.Client, instrumentOpts instrument.Options, ) http.Handler
NewConfigSetBootstrappersHandler returns a new instance of a database create handler.
func NewCreateHandler ¶
func NewCreateHandler( client clusterclient.Client, cfg config.Configuration, embeddedDbCfg *dbconfig.DBConfiguration, defaults []handleroptions.ServiceOptionsDefault, instrumentOpts instrument.Options, ) (http.Handler, error)
NewCreateHandler returns a new instance of a database create handler.
func RegisterRoutes ¶
func RegisterRoutes( r *mux.Router, client clusterclient.Client, cfg config.Configuration, embeddedDbCfg *dbconfig.DBConfiguration, defaults []handleroptions.ServiceOptionsDefault, instrumentOpts instrument.Options, ) error
RegisterRoutes registers the namespace routes
Types ¶
Click to show internal directories.
Click to hide internal directories.