resource

package
v0.0.0-...-28d43d2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Root         string
	Name         string
	Middleware   []ion.Middleware
	Subresources map[string]Resource
	Get          http.Handler
	Post         http.Handler
	GetID        http.Handler
	PostID       http.Handler
	DeleteID     http.Handler
}

func (Resource) Attach

func (res Resource) Attach(router *router.Router)

Jump to

Keyboard shortcuts

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