Documentation ¶
Overview ¶
Package settings regroups some API methods to facilitate the usage of the io.cozy settings documents.
Package settings regroups some API methods to facilitate the usage of the io.cozy settings documents.
Package settings regroups some API methods to facilitate the usage of the io.cozy settings documents.
Package settings regroups some API methods to facilitate the usage of the io.cozy settings documents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCapabilities ¶
NewCapabilities return a document with capabilities that can be marshaled to JSON or JSON-API.
func NewExternalTies ¶
func NewExternalTies(ties *csettings.ExternalTies) jsonapi.Object
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler handle all the `/settings` routes.
func NewHTTPHandler ¶
func NewHTTPHandler(svc csettings.Service) *HTTPHandler
NewHTTPHandler instantiates a new HTTPHandler.
func (*HTTPHandler) Register ¶
func (h *HTTPHandler) Register(router *echo.Group)
Register all the `/settings` routes to the given router.