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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
cmd/helloword command
middlewares

Jump to

Keyboard shortcuts

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