Documentation ¶
Index ¶
- type RestController
- func (c *RestController) AddRoute(route string, handler func(e echo.Context) error, methods []string, ...) errors.EdgeX
- func (c *RestController) Discovery(e echo.Context) error
- func (c *RestController) GetCommand(e echo.Context) error
- func (c *RestController) InitRestRoutes()
- func (c *RestController) Router() *echo.Echo
- func (c *RestController) SetCommand(e echo.Context) error
- 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 NewRestController(r *echo.Echo, dic *di.Container, serviceName string) *RestController
func (*RestController) Discovery ¶
func (c *RestController) Discovery(e echo.Context) error
func (*RestController) GetCommand ¶
func (c *RestController) GetCommand(e echo.Context) error
func (*RestController) InitRestRoutes ¶
func (c *RestController) InitRestRoutes()
func (*RestController) Router ¶
func (c *RestController) Router() *echo.Echo
func (*RestController) SetCommand ¶
func (c *RestController) SetCommand(e echo.Context) error
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.