fibersrv

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFiberServer

func NewFiberServer(config configx.Config) serverx.Server[*fiber.App]

NewFiberServer - Fiber server constructor (singleton).

Types

type FiberServer

type FiberServer struct {
	Server *fiber.App
	// contains filtered or unexported fields
}

FiberServer - Fiber server.

func (*FiberServer) GetServer

func (srv *FiberServer) GetServer() *fiber.App

GetServer - return the fiber server.

func (*FiberServer) RunAsync

func (srv *FiberServer) RunAsync()

RunAsync - Run the server async.

func (*FiberServer) RunSync

func (srv *FiberServer) RunSync()

RunSync - Run the server sync.

func (*FiberServer) Setup

func (srv *FiberServer) Setup(ctx context.Context, setupFunc func(fiber *fiber.App))

Setup - Receive a callback function setupFunc that let to configure the server.

func (*FiberServer) Shutdown

func (srv *FiberServer) Shutdown(ctx context.Context)

Shutdown - shutdown the server.

Jump to

Keyboard shortcuts

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