fiber4r

package module
v0.0.0-...-e6d56dd Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

README

Install

go get github.com/go-chassis/go-chassis-extension/protocol/fiber4r

in your main.go, add one line

import (


	"github.com/go-chassis/go-chassis/v2"

	_ "github.com/go-chassis/go-chassis-extension/protocol/fiber4r" //!! must decalre after github.com/go-chassis/go-chassis/v2
)

then fiber will replace default rest implementation.

How to collocate Fiber

app.Get("/", func(c *fiber.Ctx) error {
        return c.SendString("Hello, World 👋!")
    })
chassis.Register("rest", app)

Documentation

Index

Constants

View Source
const (
	//Name is a variable of type string which indicates the protocol being used
	Name = "rest"
)

Variables

This section is empty.

Functions

func InstallPlugin

func InstallPlugin()

InstallPlugin Install gin Plugin

func NewServer

func NewServer(opts server.Options) server.ProtocolServer

Types

This section is empty.

Jump to

Keyboard shortcuts

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