http

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestController

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

func NewRestController

func NewRestController(r *echo.Echo, dic *di.Container, serviceName string) *RestController

func (*RestController) AddRoute

func (c *RestController) AddRoute(route string, handler func(e echo.Context) error, methods []string, middlewareFunc ...echo.MiddlewareFunc) errors.EdgeX

func (*RestController) Discovery

func (c *RestController) Discovery(e echo.Context) error

func (*RestController) GetCommand

func (c *RestController) GetCommand(e echo.Context) error

func (*RestController) InitRestRoutes

func (c *RestController) InitRestRoutes()

func (*RestController) Router

func (c *RestController) Router() *echo.Echo

func (*RestController) SetCommand

func (c *RestController) SetCommand(e echo.Context) error

func (*RestController) SetCustomConfigInfo

func (c *RestController) SetCustomConfigInfo(customConfig interfaces.UpdatableConfig)

SetCustomConfigInfo sets the custom configuration, which is used to include the service's custom config in the /config endpoint response.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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