http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) *Client

func (*Client) Inject

func (c *Client) Inject(opts ...Option) *Client

func (*Client) Routes

func (c *Client) Routes(groups ...Groups)

func (*Client) Run

func (c *Client) Run() (err error)

func (*Client) Use

func (c *Client) Use(args ...interface{}) *Client

type Config

type Config struct {
	Port string
}

type Groups

type Groups struct {
	Prefix string
	Route  []Route
}

type Option

type Option func(c *Client)

type Route

type Route struct {
	Method  string
	Path    string
	Handler func(ctx *fiber.Ctx) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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