middleware

package
v0.0.0-...-72404c5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AccountDetails string = "account-details"
View Source
const AccountId string = "account_id"
View Source
const ConfigurationDB string = "configuration-db"
View Source
const Datastore string = "datastore"

Variables

This section is empty.

Functions

func APIAccessManagement

func APIAccessManagement(c *web.C, h http.Handler) http.Handler

func CreateAdministrator

func CreateAdministrator(db *bolt.DB) (string, error)

func DatastoreLoader

func DatastoreLoader(c *web.C, h http.Handler) http.Handler

func EnvironmentDatabaseProvider

func EnvironmentDatabaseProvider(init Initializer, handler DbHandler) func(c web.C, w http.ResponseWriter, r *http.Request)

func HasAdministratorToken

func HasAdministratorToken(db *bolt.DB) (bool, error)

func InitializeConfiguration

func InitializeConfiguration(configPath string, configDb interface{}) (func(c *web.C, h http.Handler) http.Handler, error)

func SetPermissions

func SetPermissions(db *bolt.DB, path, scope string) error

Types

type DatabaseProvider

type DatabaseProvider func(init Initializer, handler DbHandler) func(c web.C, w http.ResponseWriter, r *http.Request)

type DbHandler

type DbHandler func(db *bolt.DB, c web.C, w http.ResponseWriter, r *http.Request)

type Initializer

type Initializer func(db *bolt.DB) error

Jump to

Keyboard shortcuts

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