http

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const GROUP_ROUTES = `group:"httproutes"`

Variables

Functions

func AsRouteGroup

func AsRouteGroup(handler any) any

func Listen

func Listen(server *Http)

func RegisterRoutes

func RegisterRoutes(routes []RouteGroup, server *Http)

Types

type Configuration

type Configuration struct {
	Address   string
	Ratelimit int
}

type Http

type Http struct {
	Address string
	Engine  *echo.Echo
}

func NewEcho

func NewEcho(config Configuration, log *zap.Logger) *Http

func (*Http) Use

func (h *Http) Use(middleware echo.MiddlewareFunc)

type RouteGroup

type RouteGroup interface {
	ApiGroup() string
	Version() string
	Handler(*echo.Group)
}

Jump to

Keyboard shortcuts

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