Documentation
¶
Index ¶
- func StatusText(code int) string
- type HttpController
- type HttpRender
- type HttpServer
- type Option
- func WithControllers(controllers ...HttpController) Option
- func WithCors(enable bool) Option
- func WithErrorHandler(handler echo.HTTPErrorHandler) Option
- func WithHideBanner() Option
- func WithHidePort() Option
- func WithPrefix(prefix string) Option
- func WithRender(render echo.Renderer) Option
- func WithValidator(validator echo.Validator) Option
- type Wrap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusText ¶
Types ¶
type HttpController ¶
type HttpRender ¶
type HttpRender struct {
// contains filtered or unexported fields
}
func NewHttpRenderFromFS ¶
func NewHttpRenderFromFS(fs fs.FS, dir string) *HttpRender
type HttpServer ¶
func NewHttpServer ¶
func NewHttpServer(opts ...Option) *HttpServer
func (*HttpServer) Start ¶
func (s *HttpServer) Start(host, port string) error
type Option ¶
type Option func(server *HttpServer)
func WithControllers ¶
func WithControllers(controllers ...HttpController) Option
func WithErrorHandler ¶
func WithErrorHandler(handler echo.HTTPErrorHandler) Option
func WithHideBanner ¶
func WithHideBanner() Option
func WithHidePort ¶
func WithHidePort() Option
func WithPrefix ¶
func WithRender ¶
func WithValidator ¶
Click to show internal directories.
Click to hide internal directories.