resource

package
v0.0.0-...-c99bb84 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BikeshareResource

type BikeshareResource struct {
	yarf.Resource
}

func (*BikeshareResource) Get

func (resource *BikeshareResource) Get(ctx *yarf.Context) error

Get is called on GET http requests.

type IndexResource

type IndexResource struct {
	yarf.Resource
}

IndexResource defines a yarf.Resource which handles HTTP requests. The routing defined in server.go calls this resource.

func (*IndexResource) Get

func (resource *IndexResource) Get(c *yarf.Context) error

Get is a handler used by the yarf framework for GET.

Jump to

Keyboard shortcuts

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