router

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(r *mux.Router, b *Backend)

Types

type Backend

type Backend struct {
	// PortDriver MUST be thread-safe.
	// PortDriver can be nil
	PortDriver port.ParentDriver
}

func (*Backend) DeletePort

func (b *Backend) DeletePort(w http.ResponseWriter, r *http.Request)

DeletePort is the handler for POST /v{N}/ports/{id}

func (*Backend) GetPorts

func (b *Backend) GetPorts(w http.ResponseWriter, r *http.Request)

GetPorts is handler for GET /v{N}/ports

func (*Backend) PostPort

func (b *Backend) PostPort(w http.ResponseWriter, r *http.Request)

PostPort is the handler for POST /v{N}/ports

Jump to

Keyboard shortcuts

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