handlers

package
v0.0.0-...-c1abbfc Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter() *mux.Router

NewRouter returns a router which dispatches all incoming http Request to a matched handler.

func SetGlusterBlockCLI

func SetGlusterBlockCLI(cli string)

SetGlusterBlockCLI sets the gluster-block CLI path

Types

type GlusterBlockHandler

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

GlusterBlockHandler defines http Handlers for all gluster-block rest api.

func NewGlusterBlockHandler

func NewGlusterBlockHandler(manager blockvolmanager.BlockVolumeManager) *GlusterBlockHandler

NewGlusterBlockHandler returns a GlusterBlockHandler

func (*GlusterBlockHandler) RegisterRoutes

func (gb *GlusterBlockHandler) RegisterRoutes(mux *mux.Router)

RegisterRoutes will register all gluster-block http route with provided Router.

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

Route defines a route

type Routes

type Routes []Route

Routes defines the list of routes of our API

Jump to

Keyboard shortcuts

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