api

package
v0.0.0-...-bf94844 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(lc fx.Lifecycle, cfg *settings.Settings) *echo.Echo

NewServer creates new echo server object and registers start and end of lifecycle of app to start echo on start and gracefully shut it down on exit

func RegisterRoutes

func RegisterRoutes(cfg *settings.Settings, e *echo.Echo, handlers []Handler)

RegisterRoutes iterates over handlers and registers them in given echo server instance

Types

type Handler

type Handler interface {
	RegisterRoutes(echo *echo.Group)
}

Handler is an interface that each api version's handler should implement

Directories

Path Synopsis
v1
dto

Jump to

Keyboard shortcuts

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