Documentation ¶
Index ¶
- func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
- type HTTPZeptoHandler
- type HealthHandler
- type HealthStatus
- type Option
- func HTTPServer(s *http.Server) Option
- func Logger(l logger.Logger) Option
- func Name(n string) Option
- func SessionName(name string) Option
- func SessionStore(store sessions.Store) Option
- func TemplateEngine(tmplEngine renderer.Engine) Option
- func Version(v string) Option
- func WebpackEnabled(enabled bool) Option
- type Options
- type Plugin
- type Zepto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
Types ¶
type HTTPZeptoHandler ¶
type HTTPZeptoHandler struct {
// contains filtered or unexported fields
}
func (*HTTPZeptoHandler) ServeHTTP ¶
func (h *HTTPZeptoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HealthHandler ¶
type HealthHandler struct {
// contains filtered or unexported fields
}
type HealthStatus ¶
type Option ¶
type Option func(*Options)
func HTTPServer ¶ added in v1.0.2
HTTPServer - Use a custom HTTP Server
func SessionName ¶ added in v1.0.2
SessionName - Set the session name
func SessionStore ¶ added in v1.0.2
SessionStore - Set the session name
func TemplateEngine ¶ added in v1.0.2
TemplateEngine - Change the template engine implementation
func WebpackEnabled ¶ added in v1.0.2
type Plugin ¶ added in v1.0.2
type Plugin interface { Name() string Instance() interface{} PrependMiddlewares() []web.MiddlewareFunc AppendMiddlewares() []web.MiddlewareFunc OnCreated(z *Zepto) OnZeptoInit(z *Zepto) OnZeptoStart(z *Zepto) OnZeptoStop(z *Zepto) }
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
plugins
|
|
linker/datasource/datasourcemock
Package datasourcemock is a generated GoMock package.
|
Package datasourcemock is a generated GoMock package. |
storage/storagemock
Package storagemock is a generated GoMock package.
|
Package storagemock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.