fume

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 2 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

Fume adapter for Fiber

Go Reference GoCard

This is a simple adapter for Fiber that allows you to deploy your application using Fume.

package main

import (
	fume "github.com/fumeapp/fiber"
	"github.com/gofiber/fiber/v2"
)


func main() {
	app := fiber.New()
	app.GET("/", func(c *fiber.Ctx) { c.Status(200).JSON(&fiber.Map{"message": "Hello World"}) })
	fume.Start(app, fume.Options{})
}

Options

Option Description Default
Port Port to listen on 8000
Host Host to listen on localhost

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(app *fiber.App, options Options)

Types

type Options

type Options struct {
	// optional - hostname to listen on (default: localhost)
	Host string
	// optional - port to run on (default: 8000)
	Port string
}

Directories

Path Synopsis
Package fiberadapter adds Fiber support for the aws-severless-go-api library.
Package fiberadapter adds Fiber support for the aws-severless-go-api library.
Package core provides utility methods that help convert proxy events into an http.Request and http.ResponseWriter
Package core provides utility methods that help convert proxy events into an http.Request and http.ResponseWriter

Jump to

Keyboard shortcuts

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