srv

package
v0.0.0-...-d26fc85 Latest Latest
Warning

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

Go to latest
Published: May 2, 2015 License: BSD-3-Clause Imports: 15 Imported by: 1

Documentation

Overview

Package srv provides utilities and functions to make the server running possible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDBSession

func OpenDBSession(cfg config.DatabaseConfig) (*sql.DB, error)

OpenDBSession creates a session to the database.

func SetupRouter

func SetupRouter(db *sql.DB, cors bool) *mux.Router

SetupRouter creates API routes. The cors parameter is used to specify whether to enable Cross Origin Resource Sharing or not.

Types

This section is empty.

Directories

Path Synopsis
Package context creates a context to pass to each api-server route handlers functions.
Package context creates a context to pass to each api-server route handlers functions.

Jump to

Keyboard shortcuts

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