handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package handler contains the full set of handler functions and routes supported by the web api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(storageSvc storage.Storage) http.HandlerFunc

Create operates as a http handler, to add a new resource.

func Delete

func Delete(storageSvc storage.Storage) http.HandlerFunc

Delete operates as a http handler, to delete an existing resource.

func List

func List(storageSvc storage.Storage) http.HandlerFunc

List operates as a http handler, to return all available resources.

func Read

func Read(storageSvc storage.Storage) http.HandlerFunc

Read operates as a http handler, to return the requested resource by id.

func Replace

func Replace(storageSvc storage.Storage) http.HandlerFunc

Replace operates as a http handler, to replace an existing resource.

func Setup

func Setup(resourceStorage map[string]storage.Storage) http.Handler

Setup API handler based on provided resources.

func Update

func Update(storageSvc storage.Storage) http.HandlerFunc

Update operates as a http handler, to update an existing resource.

Types

This section is empty.

Directories

Path Synopsis
Package common contains the set of handler functions and routes which by default supported from the web api.
Package common contains the set of handler functions and routes which by default supported from the web api.

Jump to

Keyboard shortcuts

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