handler

package
Version: v0.0.0-...-73e35a2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	User    *api.User
	Concept *api.Concept
}

API TODO

func NewAPI

func NewAPI() *API

NewAPI TODO

func (*API) ServeHTTP

func (h *API) ServeHTTP(res http.ResponseWriter, req *http.Request)

type Concept

type Concept struct {
	// contains filtered or unexported fields
}

Concept TODO

func NewConcept

func NewConcept(t *templater.Templater) *Concept

NewConcept TODO

func (*Concept) ServeHTTP

func (h *Concept) ServeHTTP(res http.ResponseWriter, req *http.Request)

type Frontpage

type Frontpage struct {
	// contains filtered or unexported fields
}

Frontpage holds a pointer to the template, to be used for rendering the frontpage template.

func NewFrontpage

func NewFrontpage(t *templater.Templater) *Frontpage

NewFrontpage initializes, given a Templater, a new Frontpage handler.

func (*Frontpage) ServeHTTP

func (h *Frontpage) ServeHTTP(res http.ResponseWriter, req *http.Request)

type Language

type Language struct {
	Resource *Resource
}

Language struct holds a pointer to the resource handler

func NewLanguage

func NewLanguage() *Language

NewLanguage returns a new Language struct with an initialized Resource handler.

func (*Language) ServeHTTP

func (h *Language) ServeHTTP(res http.ResponseWriter, req *http.Request)

type Resource

type Resource struct {
}

Resource TODO

func NewResource

func NewResource() *Resource

NewResource TODO

func (*Resource) Handler

func (h *Resource) Handler(tag language.Tag) http.Handler

Handler TODO

type Style

type Style struct {
	// contains filtered or unexported fields
}

Style struct holds a map, with string keys corresponding to loaded styles as byte slices,

func NewStyle

func NewStyle() *Style

NewStyle initializes the Style handler by loading the css files of STYLEPATH into its styles map.

func (*Style) ServeHTTP

func (h *Style) ServeHTTP(res http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL