Documentation ¶
Index ¶
- type RestController
- func (c *RestController) AddRoute(route string, handler func(http.ResponseWriter, *http.Request), ...) errors.EdgeX
- func (c *RestController) Discovery(writer http.ResponseWriter, request *http.Request)
- func (c *RestController) GetCommand(w http.ResponseWriter, r *http.Request)
- func (c *RestController) InitRestRoutes()
- func (c *RestController) Router() *mux.Router
- func (c *RestController) SetCommand(w http.ResponseWriter, r *http.Request)
- func (c *RestController) SetCustomConfigInfo(customConfig interfaces.UpdatableConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestController ¶
type RestController struct {
// contains filtered or unexported fields
}
func NewRestController ¶
func (*RestController) AddRoute ¶
func (c *RestController) AddRoute(route string, handler func(http.ResponseWriter, *http.Request), methods ...string) errors.EdgeX
func (*RestController) Discovery ¶
func (c *RestController) Discovery(writer http.ResponseWriter, request *http.Request)
func (*RestController) GetCommand ¶
func (c *RestController) GetCommand(w http.ResponseWriter, r *http.Request)
func (*RestController) InitRestRoutes ¶
func (c *RestController) InitRestRoutes()
func (*RestController) Router ¶
func (c *RestController) Router() *mux.Router
func (*RestController) SetCommand ¶
func (c *RestController) SetCommand(w http.ResponseWriter, r *http.Request)
func (*RestController) SetCustomConfigInfo ¶
func (c *RestController) SetCustomConfigInfo(customConfig interfaces.UpdatableConfig)
SetCustomConfigInfo sets the custom configuration, which is used to include the service's custom config in the /config endpoint response.
Click to show internal directories.
Click to hide internal directories.