web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssertionContains    = "contains"
	AssertionNotContains = "not-contains"
)

Variables

This section is empty.

Functions

func CheckAndSetETag

func CheckAndSetETag(db database.Database, w http.ResponseWriter, r *http.Request) bool

func ParseIfMatch

func ParseIfMatch(input string) ([]string, error)

func SetCacheControl

func SetCacheControl(w http.ResponseWriter, maxAge time.Duration, dynamic bool)

Types

type Assertion

type Assertion struct {
	Type string
	Test interface{}
}

type Failure

type Failure struct {
	Assertion
}

type WebInterface

type WebInterface struct {
	Config  *flagstate.Config
	DB      database.Database
	Fetcher *fetcher.Fetcher
	Changes *util.ChangeBroadcaster
}

func (*WebInterface) Start

func (wi *WebInterface) Start()

Jump to

Keyboard shortcuts

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