page

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 3 Imported by: 2

README

Aeridya Pages

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServePage

func ServePage(resp *core.Response, p Paging)

Types

type Page

type Page struct {
	Route string
	Title string
	// contains filtered or unexported fields
}

func (*Page) Delete

func (p *Page) Delete(resp *core.Response)

func (*Page) Get

func (p *Page) Get(resp *core.Response)

func (*Page) Head

func (p *Page) Head(resp *core.Response)

func (*Page) LoadPage

func (p *Page) LoadPage() error

func (*Page) OnOptions

func (p *Page) OnOptions(opts ...string)

func (*Page) Options

func (p *Page) Options(resp *core.Response)

func (*Page) Post

func (p *Page) Post(resp *core.Response)

func (*Page) Put

func (p *Page) Put(resp *core.Response)

func (*Page) Unsupported

func (p *Page) Unsupported(resp *core.Response)

type Paging

type Paging interface {
	LoadPage() error
	Get(resp *core.Response)
	Put(resp *core.Response)
	Post(resp *core.Response)
	Delete(resp *core.Response)
	Options(resp *core.Response)
	Head(resp *core.Response)
	Unsupported(resp *core.Response)
}

Jump to

Keyboard shortcuts

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