context

package
v0.0.0-...-de44970 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	echo.Context
	Tx   *dbr.Tx
	User models.User
}

TODO consider add conf.Config

type Binder

type Binder struct {
	// contains filtered or unexported fields
}

func NewBinder

func NewBinder(config conf.Config, dbTxMaker db.TxMakerFunc) Binder

func (*Binder) Base

func (b *Binder) Base(handler func(Base) error) func(echo.Context) error

func (*Binder) Organization

func (b *Binder) Organization(handler func(Organization) error) func(echo.Context) error

func (*Binder) Project

func (b *Binder) Project(handler func(Project) error) func(echo.Context) error

type Organization

type Organization struct {
	Base
	Organization models.Organization
}

type Project

type Project struct {
	Base
	Organization models.Organization
	Project      models.Project
}

TODO How to embed context.Organization, so it won't shadow models.Organization

Jump to

Keyboard shortcuts

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