app

package
Version: v0.0.0-...-a5a65f0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Overview

Package app provides helpers for server applications interacting with Camlistore. See also https://camlistore.org/doc/app-environment for the related variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth() (auth.AuthMode, error)

Auth returns the auth mode for the app to access Camlistore, as defined by environment variables automatically supplied by the Camlistore server host.

func Client

func Client() (*client.Client, error)

Client returns a Camlistore client as defined by environment variables automatically supplied by the Camlistore server host.

func ListenAddress

func ListenAddress() (string, error)

ListenAddress returns the host:[port] network address, derived from the environment, that the application should listen on.

func PathPrefix

func PathPrefix(r *http.Request) string

PathPrefix returns the app's prefix on the app handler if the request was proxied through Camlistore, or "/" if the request went directly to the app.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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