controller

package
v3.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonController

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

CommonController controller for common REST APIs

func NewCommonController

func NewCommonController(dic *di.Container, r *echo.Echo, serviceName string, serviceVersion string) *CommonController

func (*CommonController) AddSecret

func (c *CommonController) AddSecret(e echo.Context) error

AddSecret handles the request to the /secret endpoint. Is used to add EdgeX Service exclusive secret to the Secret Store It returns a response as specified by the API swagger in the openapi directory

func (*CommonController) Config

func (c *CommonController) Config(e echo.Context) error

Config handles the request to /config endpoint. Is used to request the service's configuration It returns a response as specified by the swagger in openapi/common

func (*CommonController) Ping

func (c *CommonController) Ping(e echo.Context) error

Ping handles the request to /ping endpoint. Is used to test if the service is working It returns a response as specified by the API swagger in the openapi directory

func (*CommonController) SetCustomConfigInfo

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

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

func (*CommonController) SetSDKVersion

func (c *CommonController) SetSDKVersion(sdkVersion string)

SetSDKVersion sets the service's skd version

func (*CommonController) Version

func (c *CommonController) Version(e echo.Context) error

Version handles the request to /version endpoint. Is used to request the service's versions It returns a response as specified by the API swagger in the openapi directory

Jump to

Keyboard shortcuts

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