web

package
v0.0.0-...-9818b01 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package web Cozy Stack API.

Cozy is a personal platform as a service with a focus on data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSubdomainProxy

func CreateSubdomainProxy(router *echo.Echo, serveApps echo.HandlerFunc) (*echo.Echo, error)

CreateSubdomainProxy returns a new web server that will handle that apps proxy routing if the host of the request match an application, and route to the given router otherwise.

func ListenAndServe

func ListenAndServe() error

ListenAndServe creates and setups all the necessary http endpoints and start them.

func SetupAdminRoutes

func SetupAdminRoutes(router *echo.Echo) error

SetupAdminRoutes sets the routing for the administration HTTP endpoints

func SetupAppsHandler

func SetupAppsHandler(appsHandler echo.HandlerFunc) echo.HandlerFunc

SetupAppsHandler adds all the necessary middlewares for the application handler.

func SetupAssets

func SetupAssets(router *echo.Echo, assetsPath string) error

SetupAssets add assets routing and handling to the given router. It also adds a Renderer to render templates.

func SetupRoutes

func SetupRoutes(router *echo.Echo) error

SetupRoutes sets the routing for HTTP endpoints

Types

This section is empty.

Directories

Path Synopsis
Package apps is the HTTP frontend of the application package.
Package apps is the HTTP frontend of the application package.
Package auth provides register and login handlers
Package auth provides register and login handlers
Package data provide simple CRUD operation on couchdb doc
Package data provide simple CRUD operation on couchdb doc
Package files is the HTTP frontend of the vfs package.
Package files is the HTTP frontend of the vfs package.
Package jsonapi is for using the JSON-API format: parsing, serialization, checking the content-type, etc.
Package jsonapi is for using the JSON-API format: parsing, serialization, checking the content-type, etc.
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 status is here just to say that the API is up and that it can access the CouchDB databases, for debugging and monitoring purposes.
Package status is here just to say that the API is up and that it can access the CouchDB databases, for debugging and monitoring purposes.
Package version gives informations about the version of the cozy-stack
Package version gives informations about the version of the cozy-stack

Jump to

Keyboard shortcuts

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