Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func ErrorHandlerJSON(err error, c e.Context)
- func ErrorHandlerString(err error, c e.Context)
- func ErrorStatusCode(err error) int
- type Options
- type Plugin
- type Server
- func (s *Server) Add(method string, path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) Any(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) []*echo.Route
- func (s *Server) CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) File(path, file string, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) Group(prefix string, m ...echo.MiddlewareFunc) *echo.Group
- func (s *Server) HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) Instance() *echo.Echo
- func (s *Server) Match(methods []string, path string, handler echo.HandlerFunc, ...) []*echo.Route
- func (s *Server) OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) Options() *Options
- func (s *Server) PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func (s *Server) Pre(middleware ...echo.MiddlewareFunc)
- func (s *Server) Serve(ctx context.Context)
- func (s *Server) Shutdown(ctx context.Context)
- func (s *Server) Static(prefix, root string) *echo.Route
- func (s *Server) Use(middleware ...echo.MiddlewareFunc)
- type WrappedLogger
- func (wl WrappedLogger) Debug(i ...interface{})
- func (wl WrappedLogger) Debugf(s string, i ...interface{})
- func (wl WrappedLogger) Debugj(j l.JSON)
- func (wl WrappedLogger) Error(i ...interface{})
- func (wl WrappedLogger) Errorf(s string, i ...interface{})
- func (wl WrappedLogger) Errorj(j l.JSON)
- func (wl WrappedLogger) Fatal(i ...interface{})
- func (wl WrappedLogger) Fatalf(s string, i ...interface{})
- func (wl WrappedLogger) Fatalj(j l.JSON)
- func (wl WrappedLogger) Info(i ...interface{})
- func (wl WrappedLogger) Infof(s string, i ...interface{})
- func (wl WrappedLogger) Infoj(j l.JSON)
- func (wl WrappedLogger) Level() l.Lvl
- func (wl WrappedLogger) Output() io.Writer
- func (wl WrappedLogger) Panic(i ...interface{})
- func (wl WrappedLogger) Panicf(format string, args ...interface{})
- func (wl WrappedLogger) Panicj(j l.JSON)
- func (wl WrappedLogger) Prefix() string
- func (wl WrappedLogger) Print(i ...interface{})
- func (wl WrappedLogger) Printf(s string, i ...interface{})
- func (wl WrappedLogger) Printj(j l.JSON)
- func (wl WrappedLogger) SetHeader(h string)
- func (wl WrappedLogger) SetLevel(v l.Lvl)
- func (wl WrappedLogger) SetOutput(w io.Writer)
- func (wl WrappedLogger) SetPrefix(p string)
- func (wl WrappedLogger) Warn(i ...interface{})
- func (wl WrappedLogger) Warnf(s string, i ...interface{})
- func (wl WrappedLogger) Warnj(j l.JSON)
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorHandlerJSON ¶
ErrorHandlerJSON implements JSON content type error handler.
func ErrorHandlerString ¶
ErrorHandlerString implements plain text content type error handler.
func ErrorStatusCode ¶
ErrorStatusCode translates to the respective status code.
Types ¶
type Options ¶
type Options struct { HideBanner bool DisableHTTP2 bool `config:"disableHTTP2"` Port int Type string Protocol string TLS struct { Enabled bool Type string Auto struct { Host string } File struct { Cert string Key string } } `config:"tls"` Json struct { Pretty struct { Enabled bool } } }
func NewOptions ¶
func NewOptionsWithPath ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServerWithConfigPath ¶
func NewServerWithOptions ¶
type WrappedLogger ¶
type WrappedLogger struct {
// contains filtered or unexported fields
}
func WrapLogger ¶
func WrapLogger(l log.Logger) *WrappedLogger
func (WrappedLogger) Debug ¶
func (wl WrappedLogger) Debug(i ...interface{})
func (WrappedLogger) Debugf ¶
func (wl WrappedLogger) Debugf(s string, i ...interface{})
func (WrappedLogger) Debugj ¶
func (wl WrappedLogger) Debugj(j l.JSON)
func (WrappedLogger) Error ¶
func (wl WrappedLogger) Error(i ...interface{})
func (WrappedLogger) Errorf ¶
func (wl WrappedLogger) Errorf(s string, i ...interface{})
func (WrappedLogger) Errorj ¶
func (wl WrappedLogger) Errorj(j l.JSON)
func (WrappedLogger) Fatal ¶
func (wl WrappedLogger) Fatal(i ...interface{})
func (WrappedLogger) Fatalf ¶
func (wl WrappedLogger) Fatalf(s string, i ...interface{})
func (WrappedLogger) Fatalj ¶
func (wl WrappedLogger) Fatalj(j l.JSON)
func (WrappedLogger) Info ¶
func (wl WrappedLogger) Info(i ...interface{})
func (WrappedLogger) Infof ¶
func (wl WrappedLogger) Infof(s string, i ...interface{})
func (WrappedLogger) Infoj ¶
func (wl WrappedLogger) Infoj(j l.JSON)
func (WrappedLogger) Level ¶
func (wl WrappedLogger) Level() l.Lvl
func (WrappedLogger) Output ¶
func (wl WrappedLogger) Output() io.Writer
func (WrappedLogger) Panic ¶
func (wl WrappedLogger) Panic(i ...interface{})
func (WrappedLogger) Panicf ¶
func (wl WrappedLogger) Panicf(format string, args ...interface{})
func (WrappedLogger) Panicj ¶
func (wl WrappedLogger) Panicj(j l.JSON)
func (WrappedLogger) Prefix ¶
func (wl WrappedLogger) Prefix() string
func (WrappedLogger) Print ¶
func (wl WrappedLogger) Print(i ...interface{})
func (WrappedLogger) Printf ¶
func (wl WrappedLogger) Printf(s string, i ...interface{})
func (WrappedLogger) Printj ¶
func (wl WrappedLogger) Printj(j l.JSON)
func (WrappedLogger) SetHeader ¶
func (wl WrappedLogger) SetHeader(h string)
func (WrappedLogger) SetLevel ¶
func (wl WrappedLogger) SetLevel(v l.Lvl)
func (WrappedLogger) SetOutput ¶
func (wl WrappedLogger) SetOutput(w io.Writer)
func (WrappedLogger) SetPrefix ¶
func (wl WrappedLogger) SetPrefix(p string)
func (WrappedLogger) Warn ¶
func (wl WrappedLogger) Warn(i ...interface{})
func (WrappedLogger) Warnf ¶
func (wl WrappedLogger) Warnf(s string, i ...interface{})
func (WrappedLogger) Warnj ¶
func (wl WrappedLogger) Warnj(j l.JSON)
Click to show internal directories.
Click to hide internal directories.