rest

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProfRoutes

func RegisterProfRoutes(router *model.Router)

RegisterProfRoutes registers all memory profiling routes for http profiling

func RegisterTelemetryRoutes

func RegisterTelemetryRoutes(router *model.Router)

RegisterTelemetryRoutes contains metrics & telemetry routes

Types

type Handler

type Handler func(*model.AppServer, http.ResponseWriter, *http.Request)

Handler Interface to Inject Handler Functions

func (Handler) Handle

func (f Handler) Handle(appserver *model.AppServer, w http.ResponseWriter, r *http.Request)

Handle Function Segment

type RoutingEngine

type RoutingEngine interface {
	BuildRoute(path string, secure bool, handler Handler, method ...string)
	GenerateRouteHandler(handler Handler, secure bool) http.Handler
	TracingMiddleware(next http.Handler) http.Handler
}

RoutingEngine interface defines interfaces for configuring rest routes

func NewRoutingEngine

func NewRoutingEngine(router *model.Router, appserver *model.AppServer) RoutingEngine

NewRoutingEngine returns a pointer to RoutingEngine Interface

Jump to

Keyboard shortcuts

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