Versions in this module Expand all Collapse all v1 v1.2.0 Aug 30, 2024 Changes in this version + const ALLOW_RELATIVE_PATH + const BuildDate + const CurrentLocaleViewArg + const DefaultDateFormat + const DefaultDateTimeFormat + const DefaultFileContentType + const ENGINE_PARAMETERS + const ENGINE_PATH + const ENGINE_REQUEST + const ENGINE_RESPONSE + const ENGINE_RESPONSE_STATUS + const ENGINE_WRITER + const GO_NATIVE_SERVER_ENGINE + const GO_TEMPLATE + const HTTP_BODY + const HTTP_FORM + const HTTP_HOST + const HTTP_METHOD + const HTTP_MULTIPART_FORM + const HTTP_PATH + const HTTP_QUERY + const HTTP_REMOTE_ADDR + const HTTP_REQUEST_CONTEXT + const HTTP_REQUEST_URI + const HTTP_SERVER_HEADER + const HTTP_STREAM_WRITER + const HTTP_URL + const HTTP_WRITER + const IPAny + const IPv4 + const IPv4CIDR + const IPv4MappedIPv6 + const IPv4MappedIPv6CIDR + const IPv6 + const IPv6CIDR + const MinimumGoVersion + const NORMAL + const None + const ONLY_FILENAME + const RevelImportPath + const SPECIAL_USE_FLAG + const STRICT + const TEST_MODE_FLAG + const Version + var AppLog = RootLog.New("module", "app") + var AppName string + var AppPath string + var AppRoot string + var BasePath string + var BoolBinder = Binder + var CodePaths []string + var ConfPaths []string + var Config *config.Context + var CookieDomain string + var CookiePrefix string + var CookieSameSite http.SameSite + var CookieSecure bool + var CurrentEngine ServerEngine + var DateFormat string + var DateTimeFormat string + var DefaultValidationKeys map[string]map[int]string + var DevMode bool + var ENGINE_UNKNOWN_GET = errors.New("Server Engine Invalid Get") + var ErrorCSSClass = "hasError" + var FORM_NOT_FOUND = errors.New("Form Not Found") + var Filters = []Filter + var FloatBinder = Binder + var HTTPAddr string + var HTTPPort int + var HTTPSsl bool + var HTTPSslCert string + var HTTPSslKey string + var HdrForwardedFor = http.CanonicalHeaderKey("X-Forwarded-For") + var HdrRealIP = http.CanonicalHeaderKey("X-Real-Ip") + var ImportPath string + var Initialized bool + var IntBinder = Binder + var KindBinders = make(map[reflect.Kind]Binder) + var MainRouter *Router + var MainTemplateLoader *TemplateLoader + var MainWatcher *Watcher + var MapBinder = Binder + var MessageFunc = Message + var Modules []*Module + var NilChain = []Filter + var NilFilter = func(_ *Controller, _ []Filter) + var PointerBinder = Binder + var RevelConfig *model.RevelContainer + var RevelLog = RootLog.New("module", "revel") + var RevelPath string + var RootLog = logger.New() + var RunMode string + var ServerEngineInit *EngineInit + var SourcePath string + var StringBinder = Binder + var SysLog = AppLog.New("section", "system") + var TemplateFuncs = map[string]interface + var TemplatePaths []string + var TimeBinder = Binder + var TimeFormats = []string + var TimeZone = time.UTC + var TypeBinders = make(map[reflect.Type]Binder) + var UintBinder = Binder + var ViewsPath string + var WatchFilter = func(c *Controller, fc []Filter) + func ActionInvoker(c *Controller, _ []Filter) + func AddHTTPMux(path string, callback interface{}) + func AddInitEventHandler(handler EventHandler) + func Atob(v string) bool + func BeforeAfterFilter(c *Controller, fc []Filter) + func Bind(params *Params, name string, typ reflect.Type) reflect.Value + func BindFile(fileHeader *multipart.FileHeader, typ reflect.Type) reflect.Value + func BindValue(val string, typ reflect.Type) reflect.Value + func CheckInit() + func ClientIP(r *Request) string + func CompressFilter(c *Controller, fc []Filter) + func ContainsString(list []string, target string) bool + func ContentTypeByFilename(filename string) string + func DirExists(filename string) bool + func EngineHandles(engine TemplateEngine, templateView *TemplateView) bool + func Equal(a, b interface{}) bool + func ExecuteTemplate(tmpl ExecutableTemplate, data interface{}) string + func FilterConfiguringFilter(c *Controller, fc []Filter) + func FilterEq(a, b Filter) bool + func FindMethod(recvType reflect.Type, funcVal reflect.Value) *reflect.Method + func FirstNonEmpty(strs ...string) string + func FlashFilter(c *Controller, fc []Filter) + func HTTPMethodOverride(c *Controller, fc []Filter) + func HttpClientIP(r *http.Request) string + func I18nFilter(c *Controller, fc []Filter) + func Init(inputmode, importPath, srcPath string) + func InitServer() + func InitServerEngine(port int, serverEngine string) + func InterceptFunc(intc InterceptorFunc, when When, target interface{}) + func InterceptMethod(intc InterceptorMethod, when When) + func InterceptorFilter(c *Controller, fc []Filter) + func LoadMimeConfig() + func Message(locale, message string, args ...interface{}) string + func MessageLanguages() []string + func MustReadLines(filename string) []string + func OnAppStart(f func(), order ...int) + func OnAppStop(f func(), order ...int) + func PanicFilter(c *Controller, fc []Filter) + func ParamsFilter(c *Controller, fc []Filter) + func ParseKeyValueCookie(val string, cb func(key, val string)) + func ParseParams(params *Params, req *Request) + func ParseTemplateError(err error) (templateName string, line int, description string) + func ReadLines(filename string) ([]string, error) + func RegisterController(c interface{}, methods []*MethodType) + func RegisterModuleInit(callback ModuleCallbackInterface) + func RegisterServerEngine(name string, loader func() ServerEngine) + func RegisterSessionEngine(f func() SessionEngine, name string) + func RegisterTemplateLoader(key string, loader func(loader *TemplateLoader) (TemplateEngine, error)) (err error) + func ResolveContentType(req *Request) string + func ResolveFormat(req *Request) string + func ResolveImportPath(importPath string) (string, error) + func ReverseURL(args ...interface{}) (template.URL, error) + func RouterFilter(c *Controller, fc []Filter) + func Run(port int) + func SessionFilter(c *Controller, fc []Filter) + func SetSecretKey(newKey []byte) error + func Sign(message string) string + func Slug(text string) string + func TemplateOutputArgs(templatePath string, args map[string]interface{}) (data []byte, err error) + func TimeAgo(args ...interface{}) string + func ToBool(val interface{}) bool + func Unbind(output map[string]string, name string, val interface{}) + func ValidationFilter(c *Controller, fc []Filter) + func ValueBinder(f func(value string, typ reflect.Type) reflect.Value) func(*Params, string, reflect.Type) reflect.Value + func Verify(message, sig string) bool + func Walk(root string, walkFn filepath.WalkFunc) error + type AcceptLanguage struct + Language string + Quality float32 + type AcceptLanguages []AcceptLanguage + func ResolveAcceptLanguage(req *Request) AcceptLanguages + func (al AcceptLanguages) Len() int + func (al AcceptLanguages) Less(i, j int) bool + func (al AcceptLanguages) String() string + func (al AcceptLanguages) Swap(i, j int) + type ActionDefinition struct + Action string + Args map[string]string + Host string + Method string + Star bool + URL string + func (a *ActionDefinition) String() string + type ActionPathData struct + Action string + ControllerName string + ControllerNamespace string + FixedParamsByName map[string]string + Key string + MethodName string + ModuleSource *Module + Route *Route + TypeOfController *ControllerType + type BinaryResult struct + Delivery ContentDisposition + Length int64 + ModTime time.Time + Name string + Reader io.Reader + func (r *BinaryResult) Apply(req *Request, resp *Response) + type Binder struct + Bind func(params *Params, name string, typ reflect.Type) reflect.Value + Unbind func(output map[string]string, name string, val interface{}) + type BufferedServerHeader struct + func NewBufferedServerHeader(o ServerHeader) *BufferedServerHeader + func (bsh *BufferedServerHeader) Add(key string, value string) + func (bsh *BufferedServerHeader) Del(key string) + func (bsh *BufferedServerHeader) Get(key string) (value []string) + func (bsh *BufferedServerHeader) GetCookie(key string) (ServerCookie, error) + func (bsh *BufferedServerHeader) GetKeys() (value []string) + func (bsh *BufferedServerHeader) Release() + func (bsh *BufferedServerHeader) Set(key string, value string) + func (bsh *BufferedServerHeader) SetCookie(cookie string) + func (bsh *BufferedServerHeader) SetStatus(statusCode int) + type CompressResponseWriter struct + ControllerResponse *Response + Header *BufferedServerHeader + OriginalWriter io.Writer + func (c *CompressResponseWriter) Close() error + func (c *CompressResponseWriter) Write(b []byte) (int, error) + func (c *CompressResponseWriter) WriteHeader(status int) + func (c CompressResponseWriter) CloseNotify() <-chan bool + type ContentDisposition string + var Attachment ContentDisposition = "attachment" + var Inline ContentDisposition = "inline" + var NoDisposition ContentDisposition = "" + type Controller struct + Action string + AppController interface{} + Args map[string]interface{} + ClientIP string + Flash Flash + Log logger.MultiLogger + MethodName string + MethodType *MethodType + Name string + Params *Params + Request *Request + Response *Response + Result Result + Session session.Session + Type *ControllerType + Validation *Validation + ViewArgs map[string]interface{} + func NewController(context ServerContext) *Controller + func NewControllerEmpty() *Controller + func (c *Controller) Destroy() + func (c *Controller) FlashParams() + func (c *Controller) Forbidden(msg string, objs ...interface{}) Result + func (c *Controller) Message(message string, args ...interface{}) string + func (c *Controller) NotFound(msg string, objs ...interface{}) Result + func (c *Controller) Redirect(val interface{}, args ...interface{}) Result + func (c *Controller) Render(extraViewArgs ...interface{}) Result + func (c *Controller) RenderBinary(memfile io.Reader, filename string, delivery ContentDisposition, ...) Result + func (c *Controller) RenderError(err error) Result + func (c *Controller) RenderFile(file *os.File, delivery ContentDisposition) Result + func (c *Controller) RenderFileName(filename string, delivery ContentDisposition) Result + func (c *Controller) RenderHTML(html string) Result + func (c *Controller) RenderJSON(o interface{}) Result + func (c *Controller) RenderJSONP(callback string, o interface{}) Result + func (c *Controller) RenderTemplate(templatePath string) Result + func (c *Controller) RenderText(text string, objs ...interface{}) Result + func (c *Controller) RenderXML(o interface{}) Result + func (c *Controller) SetAction(controllerName, methodName string) error + func (c *Controller) SetController(context ServerContext) + func (c *Controller) SetCookie(cookie *http.Cookie) + func (c *Controller) SetTypeAction(controllerName, methodName string, typeOfController *ControllerType) error + func (c *Controller) Stats() map[string]interface{} + func (c *Controller) TemplateOutput(templatePath string) (data []byte, err error) + func (c *Controller) Todo() Result + type ControllerFieldPath struct + FieldIndexPath []int + FunctionCall reflect.Value + IsPointer bool + func (fieldPath *ControllerFieldPath) Invoke(value reflect.Value, input []reflect.Value) (result []reflect.Value) + type ControllerType struct + ControllerEvents *ControllerTypeEvents + ControllerIndexes [][]int + Methods []*MethodType + ModuleSource *Module + Namespace string + Type reflect.Type + func AddControllerType(moduleSource *Module, controllerType reflect.Type, methods []*MethodType) (newControllerType *ControllerType) + func ControllerTypeByName(controllerName string, moduleSource *Module) (c *ControllerType) + func (ct *ControllerType) Method(name string) *MethodType + func (ct *ControllerType) Name() string + func (ct *ControllerType) ShortName() string + type ControllerTypeEvents struct + After []*ControllerFieldPath + Before []*ControllerFieldPath + Finally []*ControllerFieldPath + Panic []*ControllerFieldPath + func NewControllerTypeEvents(c *ControllerType) (ce *ControllerTypeEvents) + type DiscerningListener interface + WatchDir func(info os.FileInfo) bool + WatchFile func(basename string) bool + type Domain struct + Regexp *regexp.Regexp + func ValidDomain() Domain + func (d Domain) DefaultMessage() string + func (d Domain) IsSatisfied(obj interface{}) bool + type Email struct + func ValidEmail() Email + func (e Email) DefaultMessage() string + type EngineInit struct + Address string + Callback func(ServerContext) + HTTPMuxList ServerMuxList + Network string + Port int + type Error struct + Column int + Description string + Line int + Link string + MetaError string + Path string + SourceLines []string + SourceType string + Stack string + Title string + func NewErrorFromPanic(err interface{}) *Error + func (e *Error) ContextSource() []SourceLine + func (e *Error) Error() string + func (e *Error) SetLink(errorLink string) + type ErrorCoder interface + HTTPCode func() int + type ErrorResult struct + Error error + ViewArgs map[string]interface{} + func (r ErrorResult) Apply(req *Request, resp *Response) + type Event int + const ENGINE_BEFORE_INITIALIZED + const ENGINE_SHUTDOWN + const ENGINE_SHUTDOWN_REQUEST + const ENGINE_STARTED + const REVEL_AFTER_MODULES_LOADED + const REVEL_BEFORE_MODULES_LOADED + const REVEL_FAILURE + const ROUTE_REFRESH_COMPLETED + const ROUTE_REFRESH_REQUESTED + const TEMPLATE_REFRESH_COMPLETED + const TEMPLATE_REFRESH_REQUESTED + type EventHandler func(typeOf Event, value interface{}) (responseOf EventResponse) + type EventResponse int + func RaiseEvent(key Event, value interface{}) (response EventResponse) + func StopServer(value interface{}) EventResponse + type ExecutableTemplate interface + Execute func(io.Writer, interface{}) error + type Field struct + Error *ValidationError + Name string + func NewField(name string, viewArgs map[string]interface{}) *Field + func (f *Field) ErrorClass() string + func (f *Field) Flash() string + func (f *Field) FlashArray() []string + func (f *Field) ID() string + func (f *Field) Options() []string + func (f *Field) ShortName() string + func (f *Field) Translate(text string, args ...interface{}) string + func (f *Field) Value() interface{} + type FilePath struct + Mode int + func ValidFilePath(m int) FilePath + func (f FilePath) DefaultMessage() string + func (f FilePath) IsSatisfied(obj interface{}) bool + type Filter func(c *Controller, filterChain []Filter) + type FilterConfigurator struct + func FilterAction(methodRef interface{}) FilterConfigurator + func FilterController(controllerInstance interface{}) FilterConfigurator + func (conf FilterConfigurator) Add(f Filter) FilterConfigurator + func (conf FilterConfigurator) Insert(insert Filter, where When, target Filter) FilterConfigurator + func (conf FilterConfigurator) Remove(target Filter) FilterConfigurator + type Flash struct + Data map[string]string + Out map[string]string + func (f Flash) Error(msg string, args ...interface{}) + func (f Flash) Success(msg string, args ...interface{}) + type GoContext struct + Request *GoRequest + Response *GoResponse + WebSocket *GoWebSocket + func NewGoContext(instance *GoHttpServer) *GoContext + func (c *GoContext) Destroy() + func (c *GoContext) GetRequest() ServerRequest + func (c *GoContext) GetResponse() ServerResponse + type GoCookie http.Cookie + func (r GoCookie) GetValue() string + type GoEngine struct + CaseInsensitive bool + func (engine *GoEngine) Event(action Event, i interface{}) + func (engine *GoEngine) Lookup(templateName string) Template + func (engine *GoEngine) Name() string + func (engine *GoEngine) ParseAndAdd(baseTemplate *TemplateView) error + func (i *GoEngine) ConvertPath(path string) string + func (i *GoEngine) Handles(templateView *TemplateView) bool + type GoHeader struct + Source interface{} + func (r *GoHeader) Add(key string, value string) + func (r *GoHeader) Del(key string) + func (r *GoHeader) Get(key string) (value []string) + func (r *GoHeader) GetCookie(key string) (value ServerCookie, err error) + func (r *GoHeader) GetKeys() (value []string) + func (r *GoHeader) Set(key string, value string) + func (r *GoHeader) SetCookie(cookie string) + func (r *GoHeader) SetStatus(statusCode int) + type GoHttpServer struct + HasAppMux bool + HttpMuxList ServerMuxList + MaxMultipartSize int64 + Server *http.Server + ServerInit *EngineInit + func (g *GoHttpServer) Engine() interface{} + func (g *GoHttpServer) Event(event Event, args interface{}) (r EventResponse) + func (g *GoHttpServer) Handle(w http.ResponseWriter, r *http.Request) + func (g *GoHttpServer) Init(init *EngineInit) + func (g *GoHttpServer) Name() string + func (g *GoHttpServer) Start() + func (g *GoHttpServer) Stats() map[string]interface{} + type GoMultipartForm struct + Form *multipart.Form + func (f *GoMultipartForm) GetFiles() map[string][]*multipart.FileHeader + func (f *GoMultipartForm) GetValues() url.Values + func (f *GoMultipartForm) RemoveAll() error + type GoRequest struct + Engine *GoHttpServer + FormParsed bool + Goheader *GoHeader + MultiFormParsed bool + Original *http.Request + ParsedForm *GoMultipartForm + WebSocket *websocket.Conn + func (r *GoRequest) Destroy() + func (r *GoRequest) Get(key int) (value interface{}, err error) + func (r *GoRequest) GetForm() (url.Values, error) + func (r *GoRequest) GetHeader() ServerHeader + func (r *GoRequest) GetMultipartForm() (ServerMultipartForm, error) + func (r *GoRequest) GetRaw() interface{} + func (r *GoRequest) Set(key int, value interface{}) bool + func (r *GoRequest) SetRequest(req *http.Request) + type GoResponse struct + Engine *GoHttpServer + Goheader *GoHeader + Original http.ResponseWriter + Request *GoRequest + Writer io.Writer + func (r *GoResponse) Destroy() + func (r *GoResponse) Get(key int) (value interface{}, err error) + func (r *GoResponse) GetRaw() interface{} + func (r *GoResponse) Header() ServerHeader + func (r *GoResponse) Set(key int, value interface{}) (set bool) + func (r *GoResponse) SetResponse(w http.ResponseWriter) + func (r *GoResponse) SetWriter(writer io.Writer) + func (r *GoResponse) WriteStream(name string, contentlen int64, modtime time.Time, reader io.Reader) error + type GoTemplate struct + func (gotmpl GoTemplate) Render(wr io.Writer, arg interface{}) error + type GoWebSocket struct + Conn *websocket.Conn + func (g *GoWebSocket) MessageReceive(v interface{}) error + func (g *GoWebSocket) MessageReceiveJSON(v interface{}) error + func (g *GoWebSocket) MessageSend(v interface{}) error + func (g *GoWebSocket) MessageSendJSON(v interface{}) error + type IPAddr struct + Vaildtypes []int + func ValidIPAddr(cktypes ...int) IPAddr + func (i IPAddr) DefaultMessage() string + func (i IPAddr) IsSatisfied(obj interface{}) bool + type InterceptTarget int + const AllControllers + type Interception struct + When When + func (i Interception) Invoke(val reflect.Value, target *reflect.Value) reflect.Value + type InterceptorFunc func(*Controller) Result + type InterceptorMethod interface + type Length struct + N int + func ValidLength(n int) Length + func (s Length) DefaultMessage() string + func (s Length) IsSatisfied(obj interface{}) bool + type Listener interface + Refresh func() *Error + type MacAddr struct + func ValidMacAddr() MacAddr + func (m MacAddr) DefaultMessage() string + func (m MacAddr) IsSatisfied(obj interface{}) bool + type Match struct + Regexp *regexp.Regexp + func ValidMatch(regex *regexp.Regexp) Match + func (m Match) DefaultMessage() string + func (m Match) IsSatisfied(obj interface{}) bool + type Max struct + Max float64 + func ValidMax(max int) Max + func ValidMaxFloat(max float64) Max + func (m Max) DefaultMessage() string + func (m Max) IsSatisfied(obj interface{}) bool + type MaxSize struct + Max int + func ValidMaxSize(max int) MaxSize + func (m MaxSize) DefaultMessage() string + func (m MaxSize) IsSatisfied(obj interface{}) bool + type MethodArg struct + Name string + Type reflect.Type + type MethodType struct + Args []*MethodArg + Index int + Name string + RenderArgNames map[int][]string + type Min struct + Min float64 + func ValidMin(min int) Min + func ValidMinFloat(min float64) Min + func (m Min) DefaultMessage() string + func (m Min) IsSatisfied(obj interface{}) bool + type MinSize struct + Min int + func ValidMinSize(min int) MinSize + func (m MinSize) DefaultMessage() string + func (m MinSize) IsSatisfied(obj interface{}) bool + type Module struct + ControllerTypeList []*ControllerType + ImportPath string + Log logger.MultiLogger + Name string + Path string + func ModuleByName(name string) (*Module, bool) + func ModuleFromPath(packagePath string, addGopathToPath bool) (module *Module) + func (m *Module) AddController(ct *ControllerType) + func (m *Module) ControllerByName(name, action string) (ctype *ControllerType) + func (m *Module) Namespace() (namespace string) + type ModuleCallbackInterface func(*Module) + type MultipartForm struct + File map[string][]*multipart.FileHeader + Value url.Values + type OutResponse struct + Server ServerResponse + func (o *OutResponse) Destroy() + func (o *OutResponse) Header() *RevelHeader + func (o *OutResponse) Write(data []byte) (int, error) + type Params struct + Files map[string][]*multipart.FileHeader + Fixed url.Values + Form url.Values + JSON []byte + Query url.Values + Route url.Values + func (p *Params) Bind(dest interface{}, name string) + func (p *Params) BindJSON(dest interface{}) error + type PlaintextErrorResult struct + Error error + func (r PlaintextErrorResult) Apply(req *Request, resp *Response) + type PureText struct + Mode int + func ValidPureText(m int) PureText + func (p PureText) DefaultMessage() string + func (p PureText) IsSatisfied(obj interface{}) bool + type Range struct + func ValidRange(min, max int) Range + func ValidRangeFloat(min, max float64) Range + func (r Range) DefaultMessage() string + func (r Range) IsSatisfied(obj interface{}) bool + type RedirectToActionResult struct + func (r *RedirectToActionResult) Apply(req *Request, resp *Response) + type RedirectToURLResult struct + func (r *RedirectToURLResult) Apply(req *Request, resp *Response) + type RenderHTMLResult struct + func (r RenderHTMLResult) Apply(req *Request, resp *Response) + type RenderJSONResult struct + func (r RenderJSONResult) Apply(req *Request, resp *Response) + type RenderTemplateResult struct + Template Template + ViewArgs map[string]interface{} + func (r *RenderTemplateResult) Apply(req *Request, resp *Response) + func (r *RenderTemplateResult) ToBytes() (b *bytes.Buffer, err error) + type RenderTextResult struct + func (r RenderTextResult) Apply(req *Request, resp *Response) + type RenderXMLResult struct + func (r RenderXMLResult) Apply(req *Request, resp *Response) + type Request struct + AcceptLanguages AcceptLanguages + ContentType string + Form url.Values + Format string + Header *RevelHeader + Host string + In ServerRequest + Locale string + Method string + MultipartForm *MultipartForm + RemoteAddr string + URL *url.URL + WebSocket ServerWebSocket + func NewRequest(r ServerRequest) *Request + func (r *Request) GetValue(key int) (value interface{}) + func (r *Request) UserAgent() string + func (req *Request) Args() map[string]interface{} + func (req *Request) Context() (c context.Context) + func (req *Request) Cookie(key string) (ServerCookie, error) + func (req *Request) Destroy() + func (req *Request) FormValue(key string) (value string) + func (req *Request) GetBody() (body io.Reader) + func (req *Request) GetForm() (url.Values, error) + func (req *Request) GetHttpHeader(key string) string + func (req *Request) GetMultipartForm() (ServerMultipartForm, error) + func (req *Request) GetPath() (path string) + func (req *Request) GetQuery() (v url.Values) + func (req *Request) GetRequestURI() string + func (req *Request) MultipartReader() (*multipart.Reader, error) + func (req *Request) ParseForm() (e error) + func (req *Request) ParseMultipartForm(_ int64) (e error) + func (req *Request) PostFormValue(key string) (value string) + func (req *Request) Referer() string + func (req *Request) SetRequest(r ServerRequest) + type Required struct + func ValidRequired() Required + func (r Required) DefaultMessage() string + func (r Required) IsSatisfied(obj interface{}) bool + type Response struct + ContentType string + Out OutResponse + Status int + func NewResponse(w ServerResponse) (r *Response) + func (resp *Response) Destroy() + func (resp *Response) GetStreamWriter() (writer StreamWriter) + func (resp *Response) GetWriter() (writer io.Writer) + func (resp *Response) SetResponse(r ServerResponse) + func (resp *Response) SetStatus(statusCode int) + func (resp *Response) SetWriter(writer io.Writer) bool + func (resp *Response) WriteHeader(defaultStatusCode int, defaultContentType string) + type Result interface + Apply func(req *Request, resp *Response) + type RevelHeader struct + Server ServerHeader + func (h *RevelHeader) Add(key, value string) + func (h *RevelHeader) Destroy() + func (h *RevelHeader) Get(key string) (value string) + func (h *RevelHeader) GetAll(key string) (values []string) + func (h *RevelHeader) Set(key, value string) + func (h *RevelHeader) SetCookie(cookie string) + func (h *RevelHeader) SetStatus(status int) + type RevelHook struct + type RevelHooks []RevelHook + func (r RevelHooks) Add(fn func(), order ...int) RevelHooks + func (r RevelHooks) Run() + func (slice RevelHooks) Len() int + func (slice RevelHooks) Less(i, j int) bool + func (slice RevelHooks) Swap(i, j int) + type Route struct + Action string + ControllerName string + ControllerNamespace string + FixedParams []string + Method string + MethodName string + ModuleSource *Module + Path string + TreePath string + TypeOfController *ControllerType + func NewRoute(moduleSource *Module, method, path, action, fixedArgs, routesPath string, ...) (r *Route) + func (route *Route) ActionPath() string + type RouteMatch struct + Action string + ControllerName string + FixedParams []string + MethodName string + ModuleSource *Module + Params map[string][]string + TypeOfController *ControllerType + type Router struct + Module string + Routes []*Route + Tree *pathtree.Node + func NewRouter(routesPath string) *Router + func (router *Router) Refresh() (err *Error) + func (router *Router) Reverse(action string, argValues map[string]string) (ad *ActionDefinition) + func (router *Router) ReverseError(action string, argValues map[string]string, req *Request) (ad *ActionDefinition, err error) + func (router *Router) Route(req *Request) (routeMatch *RouteMatch) + type ServerContext interface + GetRequest func() ServerRequest + GetResponse func() ServerResponse + type ServerCookie interface + GetValue func() string + type ServerEngine interface + Engine func() interface{} + Event func(event Event, args interface{}) EventResponse + Init func(init *EngineInit) + Name func() string + Start func() + Stats func() map[string]interface{} + type ServerEngineEmpty struct + func (e *ServerEngineEmpty) Get(_ string) interface{} + func (e *ServerEngineEmpty) Set(_ string, _ interface{}) bool + type ServerHeader interface + Add func(key string, value string) + Del func(key string) + Get func(key string) (value []string) + GetCookie func(key string) (value ServerCookie, err error) + GetKeys func() (headerKeys []string) + Set func(key string, value string) + SetCookie func(cookie string) + SetStatus func(statusCode int) + type ServerMultipartForm interface + GetFiles func() map[string][]*multipart.FileHeader + GetValues func() url.Values + RemoveAll func() error + type ServerMux struct + Callback interface{} + PathPrefix string + type ServerMuxList []ServerMux + func (r ServerMuxList) Find(path string) (interface{}, bool) + func (r ServerMuxList) Len() int + func (r ServerMuxList) Less(i, j int) bool + func (r ServerMuxList) Swap(i, j int) + type ServerRequest interface + Get func(theType int) (interface{}, error) + GetRaw func() interface{} + Set func(theType int, theValue interface{}) bool + type ServerResponse interface + type ServerWebSocket interface + MessageReceive func(v interface{}) error + MessageReceiveJSON func(v interface{}) error + MessageSend func(v interface{}) error + MessageSendJSON func(v interface{}) error + type SessionCookieEngine struct + ExpireAfterDuration time.Duration + func NewSessionCookieEngine() *SessionCookieEngine + func (cse *SessionCookieEngine) Decode(c *Controller) + func (cse *SessionCookieEngine) DecodeCookie(cookie ServerCookie, s session.Session) + func (cse *SessionCookieEngine) Encode(c *Controller) + func (cse *SessionCookieEngine) GetCookie(s session.Session) *http.Cookie + type SessionEngine interface + Decode func(c *Controller) + Encode func(c *Controller) + var CurrentSessionEngine SessionEngine + type SourceLine struct + IsError bool + Line int + Source string + type StreamWriter interface + WriteStream func(name string, contentlen int64, modtime time.Time, reader io.Reader) error + type Template interface + Content func() []string + Location func() string + Name func() string + Render func(wr io.Writer, context interface{}) error + type TemplateEngine interface + Event func(event Event, arg interface{}) + Handles func(templateView *TemplateView) bool + Lookup func(templateName string) Template + Name func() string + ParseAndAdd func(basePath *TemplateView) error + type TemplateLoader struct + func NewTemplateLoader(paths []string) *TemplateLoader + func (loader *TemplateLoader) CreateTemplateEngine(templateEngineName string) (TemplateEngine, error) + func (loader *TemplateLoader) Refresh() (err *Error) + func (loader *TemplateLoader) Template(name string) (tmpl Template, err error) + func (loader *TemplateLoader) TemplateLang(name, lang string) (tmpl Template, err error) + func (loader *TemplateLoader) WatchDir(info os.FileInfo) bool + func (loader *TemplateLoader) WatchFile(basename string) bool + type TemplateView struct + BasePath string + EngineType string + FileBytes []byte + FilePath string + TemplateName string + func NewBaseTemplate(templateName, filePath, basePath string, fileBytes []byte) *TemplateView + func (i *TemplateView) Content() (content []string) + func (i *TemplateView) Location() string + type URL struct + func ValidURL() URL + func (u URL) DefaultMessage() string + func (u URL) IsSatisfied(obj interface{}) bool + type Validation struct + Errors []*ValidationError + Request *Request + Translator func(locale, message string, args ...interface{}) string + func (v *Validation) Check(obj interface{}, checks ...Validator) *ValidationResult + func (v *Validation) Clear() + func (v *Validation) Domain(str string) *ValidationResult + func (v *Validation) Email(str string) *ValidationResult + func (v *Validation) Error(message string, args ...interface{}) *ValidationResult + func (v *Validation) ErrorKey(message string, args ...interface{}) *ValidationResult + func (v *Validation) ErrorMap() map[string]*ValidationError + func (v *Validation) FilePath(str string, m int) *ValidationResult + func (v *Validation) HasErrors() bool + func (v *Validation) IPAddr(str string, cktype ...int) *ValidationResult + func (v *Validation) Keep() + func (v *Validation) Length(obj interface{}, n int) *ValidationResult + func (v *Validation) MacAddr(str string) *ValidationResult + func (v *Validation) Match(str string, regex *regexp.Regexp) *ValidationResult + func (v *Validation) Max(n int, max int) *ValidationResult + func (v *Validation) MaxFloat(n float64, max float64) *ValidationResult + func (v *Validation) MaxSize(obj interface{}, max int) *ValidationResult + func (v *Validation) Min(n int, min int) *ValidationResult + func (v *Validation) MinFloat(n float64, min float64) *ValidationResult + func (v *Validation) MinSize(obj interface{}, min int) *ValidationResult + func (v *Validation) PureText(str string, m int) *ValidationResult + func (v *Validation) Range(n, min, max int) *ValidationResult + func (v *Validation) RangeFloat(n, min, max float64) *ValidationResult + func (v *Validation) Required(obj interface{}) *ValidationResult + func (v *Validation) URL(str string) *ValidationResult + func (v *Validation) ValidationResult(ok bool) *ValidationResult + type ValidationError struct + Key string + Message string + func (e *ValidationError) String() string + type ValidationResult struct + Error *ValidationError + Locale string + Ok bool + Translator func(locale, message string, args ...interface{}) string + func (r *ValidationResult) Key(key string) *ValidationResult + func (r *ValidationResult) Message(message string, args ...interface{}) *ValidationResult + func (r *ValidationResult) MessageKey(message string, args ...interface{}) *ValidationResult + type Validator interface + DefaultMessage func() string + IsSatisfied func(interface{}) bool + type Watcher struct + func NewWatcher() *Watcher + func (w *Watcher) Listen(listener Listener, roots ...string) + func (w *Watcher) Notify() *Error + func (w *Watcher) NotifyWhenUpdated(listener Listener, watcher *fsnotify.Watcher) + type When int + const AFTER + const BEFORE + const FINALLY + const PANIC + type WriteFlusher interface + Flush func() error