Versions in this module Expand all Collapse all v1 v1.51.5 Mar 7, 2021 v1.51.4 Jan 13, 2021 v1.51.3 Jan 13, 2021 Changes in this version + const HOOK_AFTER_OUTPUT + const HOOK_AFTER_SERVE + const HOOK_BEFORE_OUTPUT + const HOOK_BEFORE_SERVE + const HookAfterOutput + const HookAfterServe + const HookBeforeOutput + const HookBeforeServe + const ServerStatusRunning + const ServerStatusStopped + const SupportedHttpMethods + const URI_TYPE_ALLLOWER + const URI_TYPE_CAMEL + const URI_TYPE_DEFAULT + const URI_TYPE_FULLNAME + const WS_MSG_BINARY + const WS_MSG_CLOSE + const WS_MSG_PING + const WS_MSG_PONG + const WS_MSG_TEXT + func BuildParams(params interface{}, noUrlEncode ...bool) (encodedParamStr string) + func ConnectBytes(url string, data ...interface{}) []byte + func ConnectContent(url string, data ...interface{}) string + func ConnectVar(url string, data ...interface{}) *gvar.Var + func DeleteBytes(url string, data ...interface{}) []byte + func DeleteContent(url string, data ...interface{}) string + func DeleteVar(url string, data ...interface{}) *gvar.Var + func GetBytes(url string, data ...interface{}) []byte + func GetContent(url string, data ...interface{}) string + func GetVar(url string, data ...interface{}) *gvar.Var + func HeadBytes(url string, data ...interface{}) []byte + func HeadContent(url string, data ...interface{}) string + func HeadVar(url string, data ...interface{}) *gvar.Var + func IsExitError(err interface{}) bool + func OptionsBytes(url string, data ...interface{}) []byte + func OptionsContent(url string, data ...interface{}) string + func OptionsVar(url string, data ...interface{}) *gvar.Var + func PatchBytes(url string, data ...interface{}) []byte + func PatchContent(url string, data ...interface{}) string + func PatchVar(url string, data ...interface{}) *gvar.Var + func PostBytes(url string, data ...interface{}) []byte + func PostContent(url string, data ...interface{}) string + func PostVar(url string, data ...interface{}) *gvar.Var + func PutBytes(url string, data ...interface{}) []byte + func PutContent(url string, data ...interface{}) string + func PutVar(url string, data ...interface{}) *gvar.Var + func RequestBytes(method string, url string, data ...interface{}) []byte + func RequestContent(method string, url string, data ...interface{}) string + func RequestVar(method string, url string, data ...interface{}) *gvar.Var + func RestartAllServer(newExeFilePath ...string) error + func SetGraceful(enabled bool) + func ShutdownAllServer() error + func TraceBytes(url string, data ...interface{}) []byte + func TraceContent(url string, data ...interface{}) string + func TraceVar(url string, data ...interface{}) *gvar.Var + func Wait() + type CORSOptions struct + AllowCredentials string + AllowDomain []string + AllowHeaders string + AllowMethods string + AllowOrigin string + ExposeHeaders string + MaxAge int + type Client struct + func NewClient() *Client + func (c *Client) BasicAuth(user, pass string) *Client + func (c *Client) Clone() *Client + func (c *Client) Connect(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) ConnectBytes(url string, data ...interface{}) []byte + func (c *Client) ConnectContent(url string, data ...interface{}) string + func (c *Client) ConnectVar(url string, data ...interface{}) *gvar.Var + func (c *Client) ContentJson() *Client + func (c *Client) ContentType(contentType string) *Client + func (c *Client) ContentXml() *Client + func (c *Client) Cookie(m map[string]string) *Client + func (c *Client) Ctx(ctx context.Context) *Client + func (c *Client) Delete(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) DeleteBytes(url string, data ...interface{}) []byte + func (c *Client) DeleteContent(url string, data ...interface{}) string + func (c *Client) DeleteVar(url string, data ...interface{}) *gvar.Var + func (c *Client) DoRequest(method, url string, data ...interface{}) (resp *ClientResponse, err error) + func (c *Client) Get(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) GetBytes(url string, data ...interface{}) []byte + func (c *Client) GetContent(url string, data ...interface{}) string + func (c *Client) GetVar(url string, data ...interface{}) *gvar.Var + func (c *Client) Head(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) HeadBytes(url string, data ...interface{}) []byte + func (c *Client) HeadContent(url string, data ...interface{}) string + func (c *Client) HeadVar(url string, data ...interface{}) *gvar.Var + func (c *Client) Header(m map[string]string) *Client + func (c *Client) HeaderRaw(headers string) *Client + func (c *Client) Options(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) OptionsBytes(url string, data ...interface{}) []byte + func (c *Client) OptionsContent(url string, data ...interface{}) string + func (c *Client) OptionsVar(url string, data ...interface{}) *gvar.Var + func (c *Client) Patch(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) PatchBytes(url string, data ...interface{}) []byte + func (c *Client) PatchContent(url string, data ...interface{}) string + func (c *Client) PatchVar(url string, data ...interface{}) *gvar.Var + func (c *Client) Post(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) PostBytes(url string, data ...interface{}) []byte + func (c *Client) PostContent(url string, data ...interface{}) string + func (c *Client) PostVar(url string, data ...interface{}) *gvar.Var + func (c *Client) Prefix(prefix string) *Client + func (c *Client) Proxy(proxyURL string) *Client + func (c *Client) Put(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) PutBytes(url string, data ...interface{}) []byte + func (c *Client) PutContent(url string, data ...interface{}) string + func (c *Client) PutVar(url string, data ...interface{}) *gvar.Var + func (c *Client) RedirectLimit(redirectLimit int) *Client + func (c *Client) RequestBytes(method string, url string, data ...interface{}) []byte + func (c *Client) RequestContent(method string, url string, data ...interface{}) string + func (c *Client) RequestVar(method string, url string, data ...interface{}) *gvar.Var + func (c *Client) Retry(retryCount int, retryInterval time.Duration) *Client + func (c *Client) SetBasicAuth(user, pass string) *Client + func (c *Client) SetBrowserMode(enabled bool) *Client + func (c *Client) SetContentType(contentType string) *Client + func (c *Client) SetCookie(key, value string) *Client + func (c *Client) SetCookieMap(m map[string]string) *Client + func (c *Client) SetCtx(ctx context.Context) *Client + func (c *Client) SetHeader(key, value string) *Client + func (c *Client) SetHeaderMap(m map[string]string) *Client + func (c *Client) SetHeaderRaw(headers string) *Client + func (c *Client) SetPrefix(prefix string) *Client + func (c *Client) SetProxy(proxyURL string) + func (c *Client) SetRedirectLimit(redirectLimit int) *Client + func (c *Client) SetRetry(retryCount int, retryInterval time.Duration) *Client + func (c *Client) SetTimeout(t time.Duration) *Client + func (c *Client) Timeout(t time.Duration) *Client + func (c *Client) Trace(url string, data ...interface{}) (*ClientResponse, error) + func (c *Client) TraceBytes(url string, data ...interface{}) []byte + func (c *Client) TraceContent(url string, data ...interface{}) string + func (c *Client) TraceVar(url string, data ...interface{}) *gvar.Var + type ClientResponse struct + func Connect(url string, data ...interface{}) (*ClientResponse, error) + func Delete(url string, data ...interface{}) (*ClientResponse, error) + func DoRequest(method, url string, data ...interface{}) (*ClientResponse, error) + func Get(url string, data ...interface{}) (*ClientResponse, error) + func Head(url string, data ...interface{}) (*ClientResponse, error) + func Options(url string, data ...interface{}) (*ClientResponse, error) + func Patch(url string, data ...interface{}) (*ClientResponse, error) + func Post(url string, data ...interface{}) (*ClientResponse, error) + func Put(url string, data ...interface{}) (*ClientResponse, error) + func Trace(url string, data ...interface{}) (*ClientResponse, error) + func (r *ClientResponse) Close() error + func (r *ClientResponse) GetCookie(key string) string + func (r *ClientResponse) GetCookieMap() map[string]string + func (r *ClientResponse) Raw() string + func (r *ClientResponse) RawDump() + func (r *ClientResponse) RawRequest() string + func (r *ClientResponse) RawResponse() string + func (r *ClientResponse) ReadAll() []byte + func (r *ClientResponse) ReadAllString() string + type Controller interface + Init func(*Request) + Shut func() + type Cookie struct + func GetCookie(r *Request) *Cookie + func (c *Cookie) Contains(key string) bool + func (c *Cookie) Flush() + func (c *Cookie) Get(key string, def ...string) string + func (c *Cookie) GetSessionId() string + func (c *Cookie) Map() map[string]string + func (c *Cookie) Remove(key string) + func (c *Cookie) RemoveCookie(key, domain, path string) + func (c *Cookie) Set(key, value string) + func (c *Cookie) SetCookie(key, value, domain, path string, maxAge time.Duration, httpOnly ...bool) + func (c *Cookie) SetHttpCookie(httpCookie *http.Cookie) + func (c *Cookie) SetSessionId(id string) + type Domain struct + func (d *Domain) BindController(pattern string, c Controller, methods ...string) + func (d *Domain) BindControllerMethod(pattern string, c Controller, method string) + func (d *Domain) BindControllerRest(pattern string, c Controller) + func (d *Domain) BindHandler(pattern string, handler HandlerFunc) + func (d *Domain) BindHookHandler(pattern string, hook string, handler HandlerFunc) + func (d *Domain) BindHookHandlerByMap(pattern string, hookmap map[string]HandlerFunc) + func (d *Domain) BindMiddleware(pattern string, handlers ...HandlerFunc) + func (d *Domain) BindMiddlewareDefault(handlers ...HandlerFunc) + func (d *Domain) BindObject(pattern string, obj interface{}, methods ...string) + func (d *Domain) BindObjectMethod(pattern string, obj interface{}, method string) + func (d *Domain) BindObjectRest(pattern string, obj interface{}) + func (d *Domain) BindStatusHandler(status int, handler HandlerFunc) + func (d *Domain) BindStatusHandlerByMap(handlerMap map[int]HandlerFunc) + func (d *Domain) EnablePProf(pattern ...string) + func (d *Domain) Group(prefix string, groups ...func(group *RouterGroup)) *RouterGroup + func (d *Domain) Use(handlers ...HandlerFunc) + type GroupItem = []interface + type HandlerFunc = func(r *Request) + type Middleware struct + func (m *Middleware) Next() + type Plugin interface + Author func() string + Description func() string + Install func(s *Server) error + Name func() string + Remove func() error + Version func() string + type Request struct + Cookie *Cookie + EnterTime int64 + LeaveTime int64 + Middleware *Middleware + Response *Response + Router *Router + Server *Server + Session *gsession.Session + StaticFile *StaticFile + func (r *Request) Assign(key string, value interface{}) + func (r *Request) Assigns(data gview.Params) + func (r *Request) BasicAuth(user, pass string, tips ...string) bool + func (r *Request) Context() context.Context + func (r *Request) Exit() + func (r *Request) ExitAll() + func (r *Request) ExitHook() + func (r *Request) Get(key string, def ...interface{}) interface{} + func (r *Request) GetArray(key string, def ...interface{}) []string + func (r *Request) GetBody() []byte + func (r *Request) GetBodyString() string + func (r *Request) GetBool(key string, def ...interface{}) bool + func (r *Request) GetClientIp() string + func (r *Request) GetCtx() context.Context + func (r *Request) GetCtxVar(key interface{}, def ...interface{}) *gvar.Var + func (r *Request) GetError() error + func (r *Request) GetFloat32(key string, def ...interface{}) float32 + func (r *Request) GetFloat64(key string, def ...interface{}) float64 + func (r *Request) GetFloats(key string, def ...interface{}) []float64 + func (r *Request) GetForm(key string, def ...interface{}) interface{} + func (r *Request) GetFormArray(key string, def ...interface{}) []string + func (r *Request) GetFormBool(key string, def ...interface{}) bool + func (r *Request) GetFormFloat32(key string, def ...interface{}) float32 + func (r *Request) GetFormFloat64(key string, def ...interface{}) float64 + func (r *Request) GetFormFloats(key string, def ...interface{}) []float64 + func (r *Request) GetFormInt(key string, def ...interface{}) int + func (r *Request) GetFormInt32(key string, def ...interface{}) int32 + func (r *Request) GetFormInt64(key string, def ...interface{}) int64 + func (r *Request) GetFormInterfaces(key string, def ...interface{}) []interface{} + func (r *Request) GetFormInts(key string, def ...interface{}) []int + func (r *Request) GetFormMap(kvMap ...map[string]interface{}) map[string]interface{} + func (r *Request) GetFormMapStrStr(kvMap ...map[string]interface{}) map[string]string + func (r *Request) GetFormMapStrVar(kvMap ...map[string]interface{}) map[string]*gvar.Var + func (r *Request) GetFormString(key string, def ...interface{}) string + func (r *Request) GetFormStrings(key string, def ...interface{}) []string + func (r *Request) GetFormStruct(pointer interface{}, mapping ...map[string]string) error + func (r *Request) GetFormUint(key string, def ...interface{}) uint + func (r *Request) GetFormUint32(key string, def ...interface{}) uint32 + func (r *Request) GetFormUint64(key string, def ...interface{}) uint64 + func (r *Request) GetFormVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetHeader(key string) string + func (r *Request) GetHost() string + func (r *Request) GetInt(key string, def ...interface{}) int + func (r *Request) GetInt32(key string, def ...interface{}) int32 + func (r *Request) GetInt64(key string, def ...interface{}) int64 + func (r *Request) GetInterfaces(key string, def ...interface{}) []interface{} + func (r *Request) GetInts(key string, def ...interface{}) []int + func (r *Request) GetJson() (*gjson.Json, error) + func (r *Request) GetMap(def ...map[string]interface{}) map[string]interface{} + func (r *Request) GetMapStrStr(def ...map[string]interface{}) map[string]string + func (r *Request) GetMultipartFiles(name string) []*multipart.FileHeader + func (r *Request) GetMultipartForm() *multipart.Form + func (r *Request) GetPage(totalSize, pageSize int) *gpage.Page + func (r *Request) GetParam(key string, def ...interface{}) interface{} + func (r *Request) GetParamVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetPost(key string, def ...interface{}) interface{} + func (r *Request) GetPostArray(key string, def ...interface{}) []string + func (r *Request) GetPostBool(key string, def ...interface{}) bool + func (r *Request) GetPostFloat32(key string, def ...interface{}) float32 + func (r *Request) GetPostFloat64(key string, def ...interface{}) float64 + func (r *Request) GetPostFloats(key string, def ...interface{}) []float64 + func (r *Request) GetPostInt(key string, def ...interface{}) int + func (r *Request) GetPostInt32(key string, def ...interface{}) int32 + func (r *Request) GetPostInt64(key string, def ...interface{}) int64 + func (r *Request) GetPostInterfaces(key string, def ...interface{}) []interface{} + func (r *Request) GetPostInts(key string, def ...interface{}) []int + func (r *Request) GetPostMap(kvMap ...map[string]interface{}) map[string]interface{} + func (r *Request) GetPostMapStrStr(kvMap ...map[string]interface{}) map[string]string + func (r *Request) GetPostMapStrVar(kvMap ...map[string]interface{}) map[string]*gvar.Var + func (r *Request) GetPostString(key string, def ...interface{}) string + func (r *Request) GetPostStrings(key string, def ...interface{}) []string + func (r *Request) GetPostStruct(pointer interface{}, mapping ...map[string]string) error + func (r *Request) GetPostToStruct(pointer interface{}, mapping ...map[string]string) error + func (r *Request) GetPostUint(key string, def ...interface{}) uint + func (r *Request) GetPostUint32(key string, def ...interface{}) uint32 + func (r *Request) GetPostUint64(key string, def ...interface{}) uint64 + func (r *Request) GetPostVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetQuery(key string, def ...interface{}) interface{} + func (r *Request) GetQueryArray(key string, def ...interface{}) []string + func (r *Request) GetQueryBool(key string, def ...interface{}) bool + func (r *Request) GetQueryFloat32(key string, def ...interface{}) float32 + func (r *Request) GetQueryFloat64(key string, def ...interface{}) float64 + func (r *Request) GetQueryFloats(key string, def ...interface{}) []float64 + func (r *Request) GetQueryInt(key string, def ...interface{}) int + func (r *Request) GetQueryInt32(key string, def ...interface{}) int32 + func (r *Request) GetQueryInt64(key string, def ...interface{}) int64 + func (r *Request) GetQueryInterfaces(key string, def ...interface{}) []interface{} + func (r *Request) GetQueryInts(key string, def ...interface{}) []int + func (r *Request) GetQueryMap(kvMap ...map[string]interface{}) map[string]interface{} + func (r *Request) GetQueryMapStrStr(kvMap ...map[string]interface{}) map[string]string + func (r *Request) GetQueryMapStrVar(kvMap ...map[string]interface{}) map[string]*gvar.Var + func (r *Request) GetQueryString(key string, def ...interface{}) string + func (r *Request) GetQueryStrings(key string, def ...interface{}) []string + func (r *Request) GetQueryStruct(pointer interface{}, mapping ...map[string]string) error + func (r *Request) GetQueryUint(key string, def ...interface{}) uint + func (r *Request) GetQueryUint32(key string, def ...interface{}) uint32 + func (r *Request) GetQueryUint64(key string, def ...interface{}) uint64 + func (r *Request) GetQueryVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetRaw() []byte + func (r *Request) GetRawString() string + func (r *Request) GetReferer() string + func (r *Request) GetRemoteIp() string + func (r *Request) GetRequest(key string, def ...interface{}) interface{} + func (r *Request) GetRequestArray(key string, def ...interface{}) []string + func (r *Request) GetRequestBool(key string, def ...interface{}) bool + func (r *Request) GetRequestFloat32(key string, def ...interface{}) float32 + func (r *Request) GetRequestFloat64(key string, def ...interface{}) float64 + func (r *Request) GetRequestFloats(key string, def ...interface{}) []float64 + func (r *Request) GetRequestInt(key string, def ...interface{}) int + func (r *Request) GetRequestInt32(key string, def ...interface{}) int32 + func (r *Request) GetRequestInt64(key string, def ...interface{}) int64 + func (r *Request) GetRequestInterfaces(key string, def ...interface{}) []interface{} + func (r *Request) GetRequestInts(key string, def ...interface{}) []int + func (r *Request) GetRequestMap(kvMap ...map[string]interface{}) map[string]interface{} + func (r *Request) GetRequestMapStrStr(kvMap ...map[string]interface{}) map[string]string + func (r *Request) GetRequestMapStrVar(kvMap ...map[string]interface{}) map[string]*gvar.Var + func (r *Request) GetRequestString(key string, def ...interface{}) string + func (r *Request) GetRequestStrings(key string, def ...interface{}) []string + func (r *Request) GetRequestStruct(pointer interface{}, mapping ...map[string]string) error + func (r *Request) GetRequestUint(key string, def ...interface{}) uint + func (r *Request) GetRequestUint32(key string, def ...interface{}) uint32 + func (r *Request) GetRequestUint64(key string, def ...interface{}) uint64 + func (r *Request) GetRequestVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetRouterMap() map[string]string + func (r *Request) GetRouterString(key string, def ...interface{}) string + func (r *Request) GetRouterValue(key string, def ...interface{}) interface{} + func (r *Request) GetRouterVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetSessionId() string + func (r *Request) GetString(key string, def ...interface{}) string + func (r *Request) GetStrings(key string, def ...interface{}) []string + func (r *Request) GetStruct(pointer interface{}, mapping ...map[string]string) error + func (r *Request) GetUint(key string, def ...interface{}) uint + func (r *Request) GetUint32(key string, def ...interface{}) uint32 + func (r *Request) GetUint64(key string, def ...interface{}) uint64 + func (r *Request) GetUploadFile(name string) *UploadFile + func (r *Request) GetUploadFiles(name string) UploadFiles + func (r *Request) GetUrl() string + func (r *Request) GetVar(key string, def ...interface{}) *gvar.Var + func (r *Request) GetView() *gview.View + func (r *Request) IsAjaxRequest() bool + func (r *Request) IsExited() bool + func (r *Request) IsFileRequest() bool + func (r *Request) Parse(pointer interface{}) error + func (r *Request) ParseForm(pointer interface{}) error + func (r *Request) ParseQuery(pointer interface{}) error + func (r *Request) ReloadParam() + func (r *Request) SetCtx(ctx context.Context) + func (r *Request) SetCtxVar(key interface{}, value interface{}) + func (r *Request) SetForm(key string, value interface{}) + func (r *Request) SetParam(key string, value interface{}) + func (r *Request) SetQuery(key string, value interface{}) + func (r *Request) SetView(view *gview.View) + func (r *Request) WebSocket() (*WebSocket, error) + type Response struct + Request *Request + Server *Server + Writer *ResponseWriter + func (r *Response) Buffer() []byte + func (r *Response) BufferLength() int + func (r *Response) BufferString() string + func (r *Response) CORS(options CORSOptions) + func (r *Response) CORSAllowedOrigin(options CORSOptions) bool + func (r *Response) CORSDefault() + func (r *Response) ClearBuffer() + func (r *Response) DefaultCORSOptions() CORSOptions + func (r *Response) Flush() + func (r *Response) ParseTpl(tpl string, params ...gview.Params) (string, error) + func (r *Response) ParseTplContent(content string, params ...gview.Params) (string, error) + func (r *Response) ParseTplDefault(params ...gview.Params) (string, error) + func (r *Response) RedirectBack(code ...int) + func (r *Response) RedirectTo(location string, code ...int) + func (r *Response) ServeFile(path string, allowIndex ...bool) + func (r *Response) ServeFileDownload(path string, name ...string) + func (r *Response) SetBuffer(data []byte) + func (r *Response) Write(content ...interface{}) + func (r *Response) WriteExit(content ...interface{}) + func (r *Response) WriteJson(content interface{}) error + func (r *Response) WriteJsonExit(content interface{}) error + func (r *Response) WriteJsonP(content interface{}) error + func (r *Response) WriteJsonPExit(content interface{}) error + func (r *Response) WriteOver(content ...interface{}) + func (r *Response) WriteOverExit(content ...interface{}) + func (r *Response) WriteStatus(status int, content ...interface{}) + func (r *Response) WriteStatusExit(status int, content ...interface{}) + func (r *Response) WriteTpl(tpl string, params ...gview.Params) error + func (r *Response) WriteTplContent(content string, params ...gview.Params) error + func (r *Response) WriteTplDefault(params ...gview.Params) error + func (r *Response) WriteXml(content interface{}, rootTag ...string) error + func (r *Response) WriteXmlExit(content interface{}, rootTag ...string) error + func (r *Response) Writef(format string, params ...interface{}) + func (r *Response) WritefExit(format string, params ...interface{}) + func (r *Response) Writefln(format string, params ...interface{}) + func (r *Response) WriteflnExit(format string, params ...interface{}) + func (r *Response) Writeln(content ...interface{}) + func (r *Response) WritelnExit(content ...interface{}) + type ResponseWriter struct + Status int + func (w *ResponseWriter) Flush() + func (w *ResponseWriter) Header() http.Header + func (w *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (w *ResponseWriter) RawWriter() http.ResponseWriter + func (w *ResponseWriter) Write(data []byte) (int, error) + func (w *ResponseWriter) WriteHeader(status int) + type Router struct + Domain string + Method string + Priority int + RegNames []string + RegRule string + Uri string + type RouterGroup struct + func (g *RouterGroup) ALL(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) ALLMap(m map[string]interface{}) + func (g *RouterGroup) Bind(items []GroupItem) *RouterGroup + func (g *RouterGroup) CONNECT(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) Clone() *RouterGroup + func (g *RouterGroup) DELETE(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) GET(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) Group(prefix string, groups ...func(group *RouterGroup)) *RouterGroup + func (g *RouterGroup) HEAD(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) Hook(pattern string, hook string, handler HandlerFunc) *RouterGroup + func (g *RouterGroup) Middleware(handlers ...HandlerFunc) *RouterGroup + func (g *RouterGroup) OPTIONS(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) PATCH(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) POST(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) PUT(pattern string, object interface{}, params ...interface{}) *RouterGroup + func (g *RouterGroup) REST(pattern string, object interface{}) *RouterGroup + func (g *RouterGroup) TRACE(pattern string, object interface{}, params ...interface{}) *RouterGroup + type RouterItem struct + Address string + Domain string + IsServiceHandler bool + Method string + Middleware string + Priority int + Route string + Server string + Type int + type Server struct + func GetServer(name ...interface{}) *Server + func (s *Server) AddSearchPath(path string) + func (s *Server) AddStaticPath(prefix string, path string) + func (s *Server) BindController(pattern string, controller Controller, method ...string) + func (s *Server) BindControllerMethod(pattern string, controller Controller, method string) + func (s *Server) BindControllerRest(pattern string, controller Controller) + func (s *Server) BindHandler(pattern string, handler HandlerFunc) + func (s *Server) BindHookHandler(pattern string, hook string, handler HandlerFunc) + func (s *Server) BindHookHandlerByMap(pattern string, hookMap map[string]HandlerFunc) + func (s *Server) BindMiddleware(pattern string, handlers ...HandlerFunc) + func (s *Server) BindMiddlewareDefault(handlers ...HandlerFunc) + func (s *Server) BindObject(pattern string, object interface{}, method ...string) + func (s *Server) BindObjectMethod(pattern string, object interface{}, method string) + func (s *Server) BindObjectRest(pattern string, object interface{}) + func (s *Server) BindStatusHandler(status int, handler HandlerFunc) + func (s *Server) BindStatusHandlerByMap(handlerMap map[int]HandlerFunc) + func (s *Server) Domain(domains string) *Domain + func (s *Server) EnableAdmin(pattern ...string) + func (s *Server) EnableHTTPS(certFile, keyFile string, tlsConfig ...*tls.Config) + func (s *Server) EnablePProf(pattern ...string) + func (s *Server) GetCookieDomain() string + func (s *Server) GetCookieMaxAge() time.Duration + func (s *Server) GetCookiePath() string + func (s *Server) GetIndexFiles() []string + func (s *Server) GetLogPath() string + func (s *Server) GetName() string + func (s *Server) GetRouterArray() []RouterItem + func (s *Server) GetSessionCookieMaxAge() time.Duration + func (s *Server) GetSessionIdName() string + func (s *Server) GetSessionMaxAge() time.Duration + func (s *Server) Group(prefix string, groups ...func(group *RouterGroup)) *RouterGroup + func (s *Server) Handler() http.Handler + func (s *Server) IsAccessLogEnabled() bool + func (s *Server) IsErrorLogEnabled() bool + func (s *Server) Logger() *glog.Logger + func (s *Server) Plugin(plugin ...Plugin) + func (s *Server) Run() + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) SetAccessLogEnabled(enabled bool) + func (s *Server) SetAddr(address string) + func (s *Server) SetClientMaxBodySize(maxSize int64) + func (s *Server) SetConfig(c ServerConfig) error + func (s *Server) SetConfigWithMap(m map[string]interface{}) error + func (s *Server) SetCookieDomain(domain string) + func (s *Server) SetCookieMaxAge(ttl time.Duration) + func (s *Server) SetCookiePath(path string) + func (s *Server) SetDumpRouterMap(enabled bool) + func (s *Server) SetErrorLogEnabled(enabled bool) + func (s *Server) SetErrorStack(enabled bool) + func (s *Server) SetFileServerEnabled(enabled bool) + func (s *Server) SetFormParsingMemory(maxMemory int64) + func (s *Server) SetHTTPSAddr(address string) + func (s *Server) SetHTTPSPort(port ...int) + func (s *Server) SetIdleTimeout(t time.Duration) + func (s *Server) SetIndexFiles(indexFiles []string) + func (s *Server) SetIndexFolder(enabled bool) + func (s *Server) SetKeepAlive(enabled bool) + func (s *Server) SetLogLevel(level string) + func (s *Server) SetLogPath(path string) error + func (s *Server) SetLogStdout(enabled bool) + func (s *Server) SetMaxHeaderBytes(b int) + func (s *Server) SetNameToUriType(t int) + func (s *Server) SetPort(port ...int) + func (s *Server) SetReadTimeout(t time.Duration) + func (s *Server) SetRewrite(uri string, rewrite string) + func (s *Server) SetRewriteMap(rewrites map[string]string) + func (s *Server) SetRouteOverWrite(enabled bool) + func (s *Server) SetServerAgent(agent string) + func (s *Server) SetServerRoot(root string) + func (s *Server) SetSessionCookieMaxAge(maxAge time.Duration) + func (s *Server) SetSessionCookieOutput(enabled bool) + func (s *Server) SetSessionIdName(name string) + func (s *Server) SetSessionMaxAge(ttl time.Duration) + func (s *Server) SetSessionStorage(storage gsession.Storage) + func (s *Server) SetTLSConfig(tlsConfig *tls.Config) + func (s *Server) SetView(view *gview.View) + func (s *Server) SetWriteTimeout(t time.Duration) + func (s *Server) Shutdown() error + func (s *Server) Start() error + func (s *Server) Status() int + func (s *Server) Use(handlers ...HandlerFunc) + type ServerConfig struct + AccessLogEnabled bool + AccessLogPattern string + Address string + ClientMaxBodySize int64 + CookieDomain string + CookieMaxAge time.Duration + CookiePath string + DumpRouterMap bool + ErrorLogEnabled bool + ErrorLogPattern string + ErrorStack bool + FileServerEnabled bool + FormParsingMemory int64 + Graceful bool + HTTPSAddr string + HTTPSCertPath string + HTTPSKeyPath string + Handler http.Handler + IdleTimeout time.Duration + IndexFiles []string + IndexFolder bool + KeepAlive bool + LogLevel string + LogPath string + LogStdout bool + Logger *glog.Logger + MaxHeaderBytes int + NameToUriType int + PProfEnabled bool + PProfPattern string + ReadTimeout time.Duration + Rewrites map[string]string + RouteOverWrite bool + SearchPaths []string + ServerAgent string + ServerRoot string + SessionCookieMaxAge time.Duration + SessionCookieOutput bool + SessionIdName string + SessionMaxAge time.Duration + SessionPath string + SessionStorage gsession.Storage + StaticPaths []staticPathItem + TLSConfig *tls.Config + View *gview.View + WriteTimeout time.Duration + func Config() ServerConfig + func ConfigFromMap(m map[string]interface{}) (ServerConfig, error) + func NewConfig() ServerConfig + type Session = gsession.Session + type StaticFile struct + File *gres.File + IsDir bool + Path string + type UploadFile struct + func (f *UploadFile) Save(dirPath string, randomlyRename ...bool) (filename string, err error) + type UploadFiles []*UploadFile + func (fs UploadFiles) Save(dirPath string, randomlyRename ...bool) (filenames []string, err error) + type WebSocket struct