Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- type AppPlugin
- type ConfigPlugin
- type Options
- type Plugin
- type Server
- func (s *Server) Add(method string, path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) All(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) App() *fiber.App
- func (s *Server) Connect(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Delete(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Get(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Group(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Head(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Options(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Patch(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Post(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Put(path string, handlers ...fiber.Handler) fiber.Router
- func (s *Server) Serve(ctx context.Context)
- func (s *Server) Shutdown(ctx context.Context)
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigPlugin ¶
ConfigPlugin defines a ConfigPlugin function signature.
type Plugin ¶
type Plugin func(context.Context, *Options) (ConfigPlugin, AppPlugin)
Plugin defines a Plugin function signature.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a fiber server.
func NewServerWithConfigPath ¶
NewServerWithConfigPath new fiber server with options from config path.
func NewServerWithOptions ¶
NewServerWithOptions new fiber server with options.
func (*Server) Connect ¶
Connect registers a route for CONNECT methods that establishes a tunnel to the server identified by the target resource.
func (*Server) Group ¶
Group is used for Routes with common prefix to define a new sub-router with optional middleware.
api := app.Group("/api") api.Get("/users", handler)
Click to show internal directories.
Click to hide internal directories.