transport

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(logger log.Logger, routes []Route, dRoutes []DynamicRoute) *echo.Echo

NewServer creates the web server.

Types

type DynamicRoute added in v1.5.0

type DynamicRoute struct {
	ServiceGenerator ServiceGenerator
	RequestPath      string
}

DynamicRoute holds the Request path to generate the service based on request (e.g. path)

type Route

type Route struct {
	Service     service.Service
	RequestPath string
}

Route holds the Service implementation and the Request path to serve the Service.

type ServiceGenerator added in v1.5.0

type ServiceGenerator func(echo.Context) (service.Service, error)

ServiceGenerator creates a service on data from request (echo.Context)

Jump to

Keyboard shortcuts

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