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 ¶
var ReadHeaderTimeout = 15 * time.Second
ReadHeaderTimeout is the amount of time allowed to read request headers for all servers. This is activated for all handlers from all http servers created by the stack.
Functions ¶
func LoadSupportedLocales ¶
func LoadSupportedLocales() error
LoadSupportedLocales reads the po files packed in go or from the assets directory and loads them for translations
func SetupAdminRoutes ¶
SetupAdminRoutes sets the routing for the administration HTTP endpoints
func SetupAssets ¶
SetupAssets add assets routing and handling to the given router. It also adds a Renderer to render templates.
Types ¶
type Servers ¶
type Servers struct {
// contains filtered or unexported fields
}
Servers contains the started HTTP servers and implement the Shutdowner interface.
func ListenAndServe ¶
ListenAndServe creates and setups all the necessary http endpoints and start them.
func ListenAndServeWithAppDir ¶
ListenAndServeWithAppDir creates and setup all the necessary http endpoints and serve the specified application on a app subdomain.
In order to serve the application, the specified directory should provide a manifest.webapp file that will be used to parameterize the application permissions.
Directories
¶
Path | Synopsis |
---|---|
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 |