web

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: BSD-3-Clause Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFuncStore template.FuncMap

Functions

func CacheFile added in v0.5.10

func CacheFile(cacheref string, ImageCache ByteStore)

func Equalz

func Equalz(args ...interface{}) bool

func Formval

func Formval(s string, r *http.Request) string

func GetLine

func GetLine(fname string, match string) int

func Nequalz

func Nequalz(args ...interface{}) bool

func Netadd

func Netadd(x, v float64) float64

func Netdivided

func Netdivided(x, v float64) float64

func Netgt

func Netgt(x, v float64) bool

func Netgte

func Netgte(x, v float64) bool

func Netimportcss

func Netimportcss(s string) string

func Netimportjs

func Netimportjs(s string) string

func Netlt

func Netlt(x, v float64) bool

func Netlte

func Netlte(x, v float64) bool

func Netmultiply

func Netmultiply(x, v float64) float64

func NetsessionDelete

func NetsessionDelete(s *sessions.Session) string

func NetsessionGet

func NetsessionGet(key string, s *sessions.Session) string

func NetsessionGetInt

func NetsessionGetInt(key string, s *sessions.Session) interface{}

func NetsessionKey

func NetsessionKey(key string, s *sessions.Session) bool

func NetsessionRemove

func NetsessionRemove(key string, s *sessions.Session) string

func NetsessionSet

func NetsessionSet(key string, value string, s *sessions.Session) string

func NetsessionSetInt

func NetsessionSetInt(key string, value interface{}, s *sessions.Session) string

func Netsubs

func Netsubs(x, v float64) float64

func UrlAtZ

func UrlAtZ(url, base string) (isURL bool)

Types

type ByteStore added in v0.5.10

type ByteStore struct {
	Lock  *sync.RWMutex
	Cache map[string][]byte
}

func NewBS added in v0.5.10

func NewBS() ByteStore

func (ByteStore) Get added in v0.5.10

func (m ByteStore) Get(k string) (v []byte, inCache bool)

func (ByteStore) Put added in v0.5.10

func (m ByteStore) Put(k string, v []byte)

type CacheStore added in v0.5.8

type CacheStore struct {
	Lock  *sync.RWMutex
	Cache map[string]Page
}

func NewCache added in v0.5.8

func NewCache() CacheStore

func (CacheStore) Get added in v0.5.8

func (m CacheStore) Get(k string) (v Page, inCache bool)

func (CacheStore) Put added in v0.5.8

func (m CacheStore) Put(k string, v Page)

type NoStruct

type NoStruct struct {
}

type Page

type Page struct {
	Title      string
	Body       []byte
	IsResource bool
	R          *http.Request
	Session    *sessions.Session
}

type TemplateCacheStore added in v0.5.8

type TemplateCacheStore struct {
	Lock  *sync.RWMutex
	Cache map[string]*template.Template
}

func NewTemplateCache added in v0.5.8

func NewTemplateCache() TemplateCacheStore

func (TemplateCacheStore) Get added in v0.5.8

func (m TemplateCacheStore) Get(k string) (v *template.Template, inCache bool)

func (TemplateCacheStore) JGet added in v0.5.8

func (m TemplateCacheStore) JGet(k string) (v *template.Template)

func (TemplateCacheStore) Put added in v0.5.8

Jump to

Keyboard shortcuts

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