settings

package
v0.0.0-...-820a931 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 29 Imported by: 2

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 Init

func Init(svc settings.Service)

func NewCapabilities

func NewCapabilities(inst *instance.Instance) jsonapi.Object

NewCapabilities return a document with capabilities that can be marshaled to JSON or JSON-API.

func NewExternalTies

func NewExternalTies(ties *csettings.ExternalTies) jsonapi.Object

func Routes

func Routes(router *echo.Group)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL