Documentation ¶
Index ¶
- type V2CommonController
- func (c *V2CommonController) Config(writer http.ResponseWriter, request *http.Request)
- func (c *V2CommonController) Metrics(writer http.ResponseWriter, request *http.Request)
- func (c *V2CommonController) Ping(writer http.ResponseWriter, request *http.Request)
- func (c *V2CommonController) Version(writer http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V2CommonController ¶
type V2CommonController struct {
// contains filtered or unexported fields
}
V2CommonController controller for V2 REST APIs
func NewV2CommonController ¶
func NewV2CommonController(dic *di.Container) *V2CommonController
NewV2CommonController creates and initializes an V2CommonController
func (*V2CommonController) Config ¶
func (c *V2CommonController) 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 (*V2CommonController) Metrics ¶
func (c *V2CommonController) 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 (*V2CommonController) Ping ¶
func (c *V2CommonController) 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 (*V2CommonController) Version ¶
func (c *V2CommonController) 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