handlers

package
v0.0.0-...-625be2c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2013 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeAndRegister

func InitializeAndRegister(d db.DB)

func LoadFiles

func LoadFiles(resourceDirectory string) (servedFiles, error)

Types

type DBStruct

type DBStruct struct {
	D db.DB
}

type DirHandler

type DirHandler DBStruct

func (*DirHandler) ServeHTTP

func (this *DirHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type FileHandler

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

func NewFileHandler

func NewFileHandler(resourceDirectory string) *FileHandler

func (*FileHandler) ServeHTTP

func (this *FileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RecordHandler

type RecordHandler DBStruct

func (*RecordHandler) ServeHTTP

func (this *RecordHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SearchHandler

type SearchHandler DBStruct

func (*SearchHandler) ServeHTTP

func (this *SearchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SrcHandler

type SrcHandler DBStruct

func (*SrcHandler) ServeHTTP

func (this *SrcHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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