server

package
v0.0.0-...-f5eb620 Latest Latest
Warning

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

Go to latest
Published: May 23, 2016 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionManager *session.Manager

Functions

func ListenAndServe

func ListenAndServe(addr string, auth Auth, dbType DatabaseType)

Types

type Auth

type Auth struct {
	UserName string
	Password string
}

func (Auth) GetCurrentUser

func (a Auth) GetCurrentUser(c *admin.Context) qor.CurrentUser

func (Auth) LoginURL

func (a Auth) LoginURL(c *admin.Context) string

func (Auth) LogoutURL

func (a Auth) LogoutURL(c *admin.Context) string

type DatabaseType

type DatabaseType int
const (
	DB_SQLite DatabaseType
	DB_MySQL
)

type User

type User struct {
	Name string
}

func (User) DisplayName

func (u User) DisplayName() string

Jump to

Keyboard shortcuts

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