Versions in this module Expand all Collapse all v0 v0.1.2 Oct 11, 2020 v0.1.1 Jul 18, 2020 Changes in this version + type SessionOptions = ginsessions.Options v0.1.0 Jun 30, 2020 Changes in this version + const LiveReloadPath + const LiveReloadWSPort + const LiveReloadWSSPort + func NewTestContext(w http.ResponseWriter) (*Context, *Router) + type Context struct + func (c *Context) CSRFAuthenticityTemplateField() string + func (c *Context) CSRFAuthenticityToken() string + func (c *Context) Deliver(mail *mailer.Mail) error + func (c *Context) HTML(code int, name string, obj interface{}) + func (c *Context) IsAPIOnly() bool + func (c *Context) Locale() string + func (c *Context) Locales() []string + func (c *Context) Logger() *support.Logger + func (c *Context) RequestID() string + func (c *Context) Session() Sessioner + func (c *Context) SetLocale(locale string) + func (c *Context) T(key string, args ...interface{}) string + type ContextKey string + func (c ContextKey) String() string + type H = support.H + type HandlerFunc func(*Context) + func CSRFSkipCheck() HandlerFunc + type HandlersChain []HandlerFunc + type ResponseRecorder struct + func NewResponseRecorder() *ResponseRecorder + func (r *ResponseRecorder) Close() + func (r *ResponseRecorder) CloseNotify() <-chan bool + type Route struct + Handler string + HandlerFunc HandlerFunc + Method string + Path string + type RouteGroup struct + func (rg *RouteGroup) Any(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) DELETE(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) GET(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) Group(path string, handlers ...HandlerFunc) *RouteGroup + func (rg *RouteGroup) HEAD(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) Handle(method, path string, handlers ...HandlerFunc) + func (rg *RouteGroup) OPTIONS(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) PATCH(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) POST(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) PUT(path string, handlers ...HandlerFunc) + func (rg *RouteGroup) Use(handlers ...HandlerFunc) + type Router struct + func (r *Router) Any(path string, handlers ...HandlerFunc) + func (r *Router) DELETE(path string, handlers ...HandlerFunc) + func (r *Router) GET(path string, handlers ...HandlerFunc) + func (r *Router) Group(path string, handlers ...HandlerFunc) *RouteGroup + func (r *Router) HEAD(path string, handlers ...HandlerFunc) + func (r *Router) Handle(method, path string, handlers ...HandlerFunc) + func (r *Router) NoRoute(handlers ...HandlerFunc) + func (r *Router) OPTIONS(path string, handlers ...HandlerFunc) + func (r *Router) PATCH(path string, handlers ...HandlerFunc) + func (r *Router) POST(path string, handlers ...HandlerFunc) + func (r *Router) PUT(path string, handlers ...HandlerFunc) + func (r *Router) Use(handlers ...HandlerFunc) + type Routes []Route + type Server struct + func NewAppServer(asset *support.Asset, config *support.Config, i18n *support.I18n, ...) *Server + func NewServer(asset *support.Asset, config *support.Config, logger *support.Logger) *Server + func (s *Server) Any(path string, handlers ...HandlerFunc) + func (s *Server) BasePath() string + func (s *Server) Config() *support.Config + func (s *Server) DELETE(path string, handlers ...HandlerFunc) + func (s *Server) GET(path string, handlers ...HandlerFunc) + func (s *Server) Group(path string, handlers ...HandlerFunc) *RouteGroup + func (s *Server) HEAD(path string, handlers ...HandlerFunc) + func (s *Server) HTTP() *http.Server + func (s *Server) HTTPS() *http.Server + func (s *Server) Handle(method, path string, handlers ...HandlerFunc) + func (s *Server) Hosts() ([]string, error) + func (s *Server) Info() []string + func (s *Server) IsSSLCertExisted() bool + func (s *Server) Middleware() []HandlerFunc + func (s *Server) OPTIONS(path string, handlers ...HandlerFunc) + func (s *Server) PATCH(path string, handlers ...HandlerFunc) + func (s *Server) POST(path string, handlers ...HandlerFunc) + func (s *Server) PUT(path string, handlers ...HandlerFunc) + func (s *Server) Router() *Router + func (s *Server) Routes() []Route + func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (s *Server) ServeNoRoute() + func (s *Server) ServeSPA(prefix string, fs http.FileSystem) + func (s *Server) SetupGraphQL(path string, es graphql.ExecutableSchema, exts []graphql.HandlerExtension) + func (s *Server) SetupMailerPreview(m *mailer.Engine, i18n *support.I18n) + func (s *Server) TestHTTPRequest(method, path string, header H, body io.Reader) *ResponseRecorder + func (s *Server) Use(handlers ...HandlerFunc) + type Session struct + func (s *Session) AddFlash(value interface{}, vars ...string) + func (s *Session) Clear() + func (s *Session) Delete(key interface{}) + func (s *Session) Flashes(vars ...string) []interface{} + func (s *Session) Get(key interface{}) interface{} + func (s *Session) Key() string + func (s *Session) KeyPrefix() string + func (s *Session) Options(options ginsessions.Options) + func (s *Session) Save() error + func (s *Session) Session() *gorsessions.Session + func (s *Session) Set(key interface{}, val interface{}) + func (s *Session) SetKeyPrefix(p string) + func (s *Session) Values() map[interface{}]interface{} + func (s *Session) Written() bool + type SessionStore interface + KeyPrefix func() string + Options func(ginsessions.Options) + SetKeyPrefix func(p string) + type Sessioner interface + AddFlash func(value interface{}, vars ...string) + Clear func() + Delete func(key interface{}) + Flashes func(vars ...string) []interface{} + Get func(key interface{}) interface{} + Key func() string + KeyPrefix func() string + Options func(ginsessions.Options) + Save func() error + Set func(key interface{}, val interface{}) + SetKeyPrefix func(p string) + Values func() map[interface{}]interface{}