http

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V2HttpController

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

V2HttpController controller for V2 REST APIs

func NewV2HttpController

func NewV2HttpController(
	router *mux.Router,
	lc logger.LoggingClient,
	config *sdkCommon.ConfigurationStruct,
	secretProvider security.SecretProvider) *V2HttpController

NewV2HttpController creates and initializes an V2HttpController

func (*V2HttpController) Config

func (v2c *V2HttpController) 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 (*V2HttpController) ConfigureStandardRoutes

func (v2c *V2HttpController) ConfigureStandardRoutes()

ConfigureStandardRoutes loads standard V2 routes

func (*V2HttpController) Metrics

func (v2c *V2HttpController) 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 (*V2HttpController) Ping

func (v2c *V2HttpController) 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 (*V2HttpController) Secrets

func (v2c *V2HttpController) Secrets(writer http.ResponseWriter, request *http.Request)

Secrets handles the request to add App Service exclusive secrets to the Secret Store It returns a response as specified by the V2 API swagger in openapi/v2

func (*V2HttpController) Version

func (v2c *V2HttpController) 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