lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name        string
	Description string
}

type Config

type Config struct {
	App      App
	Database Database
}

func GetConfig

func GetConfig() (config Config, err error)

type Database

type Database struct {
	Url    string
	DbName string
}

type DatabaseSession

type DatabaseSession struct {
	*mgo.Session
}

func (*DatabaseSession) Database

func (session *DatabaseSession) Database() martini.Handler

type Server

type Server *martini.ClassicMartini

func CreateServer

func CreateServer(session *DatabaseSession) Server

Jump to

Keyboard shortcuts

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