Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CreateURL is the url for the database create handler. CreateURL = handler.RoutePrefixV1 + "/database/create" // CreateHTTPMethod is the HTTP method used with this resource. CreateHTTPMethod = http.MethodPost // DefaultLocalHostID is the default local host ID when creating a database. DefaultLocalHostID = "m3db_local" )
Variables ¶
This section is empty.
Functions ¶
func NewCreateHandler ¶
func NewCreateHandler( client clusterclient.Client, cfg config.Configuration, embeddedDbCfg *dbconfig.DBConfiguration, ) http.Handler
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, )
RegisterRoutes registers the namespace routes
Types ¶
Click to show internal directories.
Click to hide internal directories.