qor

package module
v0.0.0-...-38b5e39 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitWithMsg

func ExitWithMsg(str string, value ...interface{})

Types

type Config

type Config struct {
	DB *gorm.DB
}

type Context

type Context struct {
	Request    *http.Request
	ResourceID string
	Config     *Config
	Roles      []string
	DB         *gorm.DB
}

func (*Context) GetContext

func (context *Context) GetContext() *Context

func (*Context) GetDB

func (context *Context) GetDB() *gorm.DB

func (*Context) New

func (context *Context) New() *Context

func (*Context) SetDB

func (context *Context) SetDB(db *gorm.DB)

type Contextor

type Contextor interface {
	GetContext() *Context
}

type CurrentUser

type CurrentUser interface {
	DisplayName() string
}

Jump to

Keyboard shortcuts

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