http

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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 V2 REST APIs

func NewCommonController

func NewCommonController(dic *di.Container) *CommonController

NewCommonController creates and initializes an CommonController

func (*CommonController) AddSecret

func (c *CommonController) AddSecret(writer http.ResponseWriter, request *http.Request)

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 V2 API swagger in openapi/v2

func (*CommonController) Config

func (c *CommonController) Config(writer http.ResponseWriter, request *http.Request)

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

func (*CommonController) Metrics

func (c *CommonController) Metrics(writer http.ResponseWriter, request *http.Request)

Metrics handles the request to the /metrics endpoint, memory and cpu utilization stats It returns a response as specified by the V2 API swagger in openapi/v2

func (*CommonController) Ping

func (c *CommonController) Ping(writer http.ResponseWriter, request *http.Request)

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

func (*CommonController) Version

func (c *CommonController) Version(writer http.ResponseWriter, request *http.Request)

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

Jump to

Keyboard shortcuts

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