ion: github.com/estebarb/ion/components/resource Index | Files

package resource

import "github.com/estebarb/ion/components/resource"

Index

Package Files

resource.go

type Resource Uses

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 Uses

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

Package resource imports 3 packages (graph). Updated 2020-10-09. Refresh now. Tools for package owners.