Documentation ¶
Index ¶
- Constants
- type Blueprint
- func (b *Blueprint) Delete(c *gin.Context)
- func (b *Blueprint) Get(c *gin.Context)
- func (b *Blueprint) List(c *gin.Context)
- func (b *Blueprint) New(c *gin.Context)
- func (b *Blueprint) Patch(c *gin.Context)
- func (b *Blueprint) Routes(r gin.IRoutes, routes ...int)
- func (b *Blueprint) Update(c *gin.Context)
- type Middleware
- type PostCreate
- type PostDelete
- type PostUpdate
- type PreCreate
- type PreDelete
- type PreUpdate
Constants ¶
View Source
const ( RouteNew = 1 << iota RouteList RouteGet RouteUpdate RoutePatch RouteDelete RouteALL = RouteNew | RouteList | RouteGet | RouteUpdate | RoutePatch | RouteDelete )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blueprint ¶
type Blueprint struct {
// contains filtered or unexported fields
}
Blueprint ...
func NewBlueprint ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(session *mgo.Session) *Middleware
func (*Middleware) Connect ¶
func (m *Middleware) Connect(c *gin.Context)
type PostCreate ¶
type PostCreate interface {
PostCreate() error
}
type PostDelete ¶
type PostDelete interface {
PostDelete() error
}
type PostUpdate ¶
type PostUpdate interface {
PostUpdate(pre interface{}) error
}
Click to show internal directories.
Click to hide internal directories.