Documentation ¶
Index ¶
- Constants
- type V2HttpController
- func (c *V2HttpController) AddDevice(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) AddUpdateProfile(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Command(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Config(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) DeleteDevice(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) DeleteProfile(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Discovery(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Metrics(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Ping(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Secret(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) UpdateDevice(writer http.ResponseWriter, request *http.Request)
- func (c *V2HttpController) Version(writer http.ResponseWriter, request *http.Request)
Constants ¶
const QueryParameterValueNo = "no"
const QueryParameterValueYes = "yes"
const SDKPostEventReserved = "ds-postevent"
const SDKReturnEventReserved = "ds-returnevent"
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(dic *di.Container) *V2HttpController
NewV2HttpController creates and initializes an V2HttpController
func (*V2HttpController) AddDevice ¶
func (c *V2HttpController) AddDevice(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) AddUpdateProfile ¶
func (c *V2HttpController) AddUpdateProfile(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) Command ¶
func (c *V2HttpController) Command(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) Config ¶
func (c *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) DeleteDevice ¶
func (c *V2HttpController) DeleteDevice(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) DeleteProfile ¶
func (c *V2HttpController) DeleteProfile(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) Discovery ¶
func (c *V2HttpController) Discovery(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) Metrics ¶
func (c *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 (c *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) Secret ¶
func (c *V2HttpController) Secret(writer http.ResponseWriter, request *http.Request)
Secret handles the request to add Device Service exclusive secret to the Secret Store It returns a response as specified by the V2 API swagger in openapi/v2
func (*V2HttpController) UpdateDevice ¶
func (c *V2HttpController) UpdateDevice(writer http.ResponseWriter, request *http.Request)
func (*V2HttpController) Version ¶
func (c *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