Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiServer ¶
type MultiServer struct {
// contains filtered or unexported fields
}
MultiServer represents multiserver plugin for fiber.
func NewMultiServer ¶
func NewMultiServer() *MultiServer
NewMultiServer returns a new multiserver plugin with default options.
func NewMultiServerWithConfigPath ¶
func NewMultiServerWithConfigPath(path string) (*MultiServer, error)
NewMultiServerWithConfigPath returns a new multiserver plugin with options from config path.
func NewMultiServerWithOptions ¶
func NewMultiServerWithOptions(options *Options) *MultiServer
NewMultiServerWithOptions returns a new multiserver plugin with options.
func (*MultiServer) Register ¶
func (i *MultiServer) Register(ctx context.Context, options *fiber.Options) (fiber.ConfigPlugin, fiber.AppPlugin)
Register registers this multiserver plugin for fiber.
type Options ¶
Options represents multiserver plugin for fiber options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.