fboot

package module
v0.0.0-...-91bf6f3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 15 Imported by: 0

README

fiber-boot

fiber-boot

Documentation

Index

Constants

View Source
const FIBER_CHILD_LOCK_FILE = "/tmp/fiber_child.lock"

Variables

View Source
var DefaultTimeout = time.Second * 10

Functions

func Get

func Get(path ...string) gjson.Result

func Listen

func Listen(app *fiber.App, addr string, timeout ...time.Duration)

func ListenTLS

func ListenTLS(app *fiber.App, addr string, certFile, keyFile string, timeout ...time.Duration)

func Objects

func Objects() []*inject.Object

func Populate

func Populate()

func Provide

func Provide(objects ...any)

func SetConfig

func SetConfig(conf_path string)

Types

type Api

type Api interface {
	Router(r fiber.Router)
}

type App

type App struct {
	*fiber.App
}

func New

func New(config ...fiber.Config) *App

func (*App) Install

func (a *App) Install(api Api)

func (*App) Listen

func (a *App) Listen(addr string)

func (*App) ListenTLS

func (a *App) ListenTLS(addr, certFile, keyFile string, timeout ...time.Duration)

Directories

Path Synopsis
examples
middlewares

Jump to

Keyboard shortcuts

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