fiber

package
v1.0.0-alpha-9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PluginsRoot = root + ".plugins"
)

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

Types

type AppPlugin

type AppPlugin func(context.Context, *fiber.App) error

type ConfigPlugin

type ConfigPlugin func(context.Context, *fiber.Config) error

type Options

type Options struct {
	Port   int
	Type   string
	Config *fiber.Config
}

func NewOptions

func NewOptions() (*Options, error)

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

type Plugin

type Plugin func(context.Context, *Options) (ConfigPlugin, AppPlugin)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, plugins ...Plugin) *Server

func NewServerWithOptions

func NewServerWithOptions(ctx context.Context, options *Options, plugins ...Plugin) *Server

func (*Server) Add

func (s *Server) Add(method string, path string, handlers ...fiber.Handler) fiber.Router

func (*Server) All

func (s *Server) All(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) App

func (s *Server) App() *fiber.App

func (*Server) Connect

func (s *Server) Connect(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Delete

func (s *Server) Delete(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Get

func (s *Server) Get(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Group

func (s *Server) Group(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Head

func (s *Server) Head(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Options

func (s *Server) Options(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Patch

func (s *Server) Patch(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Post

func (s *Server) Post(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Put

func (s *Server) Put(path string, handlers ...fiber.Handler) fiber.Router

func (*Server) Serve

func (s *Server) Serve(ctx context.Context)

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL