Documentation
¶
Overview ¶
Allows static items to be served from domain.com/item Items requested should be located at root of statics dir
Index ¶
- Constants
- Variables
- func AddTrailingSlash(h http.Handler) http.Handler
- func Create(conf string) error
- func Info() string
- func NewStatics(path string) *statics
- func NoTrailingSlash(h http.Handler) http.Handler
- func Run() error
- func ServePage(resp *Response, p Paging)
- func ThemeError(resp *Response, t theming)
- func Version() string
- type ATheme
- type Page
- func (p *Page) Delete(resp *Response)
- func (p *Page) Get(resp *Response)
- func (p *Page) Head(resp *Response)
- func (p *Page) LoadPage() error
- func (p *Page) OnOptions(opts ...string)
- func (p *Page) Options(resp *Response)
- func (p *Page) Post(resp *Response)
- func (p *Page) Put(resp *Response)
- func (p *Page) Unsupported(resp *Response)
- type Paging
- type Response
- func (r *Response) AddCookie(name string, hour int, values map[string]string) error
- func (r *Response) Bad(status int, msg string)
- func (r *Response) DeleteCookie(name string)
- func (r *Response) Error(msg string)
- func (r *Response) GetCookieValues(name string) (map[string]string, error)
- func (r *Response) Good(status int)
- func (r *Response) RGet(name string) (string, bool)
- func (r *Response) Redirect(status int, url string)
Constants ¶
View Source
const ( NAME = "Aeridya" MAJORVER = "0" MINORVER = "9" RELEASEVER = "1" DESC = "Server and CMS" )
Variables ¶
Functions ¶
func NewStatics ¶
func NewStatics(path string) *statics
Create will create the Statics Object and return it Requires a path to the statics dir
func ThemeError ¶
func ThemeError(resp *Response, t theming)
Types ¶
type Page ¶
func (*Page) Unsupported ¶
type Response ¶
type Response struct { W http.ResponseWriter R *http.Request Status int Err error Data interface{} }
func (*Response) DeleteCookie ¶
func (*Response) GetCookieValues ¶
Click to show internal directories.
Click to hide internal directories.