Documentation ¶
Index ¶
- Variables
- func CheckAutorization(db *gorm.DB, repoDir, username, operation, refName string) (bool, bool, error)
- func CleanSlashes(in string) string
- func ErrorResp(resp response.IBasicResponse, respError response.Error, err error)
- func FinishEvent(db *gorm.DB, eventId uint) error
- func InitDB()
- func Login(db *gorm.DB, username, password string) (*models.User, error)
- func StartEvent(db *gorm.DB, repoPath, eventType, username, reference, description string, ...) (uint, error)
- type AdminController
- type App
- type AuthorizationCtrl
- type BasicController
- type FolderAdminController
- type GitCtrl
- type GitRaw
- type GormController
- func (c *GormController) Begin() revel.Result
- func (c *GormController) Commit() revel.Result
- func (c *GormController) CommitTransaction(tx *gorm.DB)
- func (c *GormController) NewTransaction() *gorm.DB
- func (c *GormController) Rollback() revel.Result
- func (c *GormController) RollbackTransaction(tx *gorm.DB)
- type JWTController
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *gorm.DB
View Source
var SlashRegexp *regexp.Regexp
Functions ¶
func CheckAutorization ¶
func CleanSlashes ¶
func StartEvent ¶
Types ¶
type AdminController ¶
type AdminController struct {
JWTController
}
func (*AdminController) CheckPermission ¶
func (ctrl *AdminController) CheckPermission() revel.Result
type App ¶
type App struct {
*revel.Controller
}
type AuthorizationCtrl ¶
type AuthorizationCtrl struct {
GormController
}
func (AuthorizationCtrl) CheckAuthorization ¶
func (c AuthorizationCtrl) CheckAuthorization() revel.Result
func (*AuthorizationCtrl) FinishEvent ¶
func (ctrl *AuthorizationCtrl) FinishEvent(eventId uint) revel.Result
func (*AuthorizationCtrl) Login ¶
func (ctrl *AuthorizationCtrl) Login() revel.Result
func (*AuthorizationCtrl) StartEvent ¶
func (ctrl *AuthorizationCtrl) StartEvent(finished bool) revel.Result
type BasicController ¶
type BasicController struct {
*revel.Controller
}
func (*BasicController) GetJSONBody ¶
func (c *BasicController) GetJSONBody(out interface{}) error
type FolderAdminController ¶
type FolderAdminController struct { JWTController Folder models.Folder }
func (*FolderAdminController) CheckPermission ¶
func (ctrl *FolderAdminController) CheckPermission() revel.Result
type GitCtrl ¶
type GitCtrl struct {
GormController
}
type GormController ¶
type GormController struct { BasicController Tx *gorm.DB }
func (*GormController) Begin ¶
func (c *GormController) Begin() revel.Result
func (*GormController) Commit ¶
func (c *GormController) Commit() revel.Result
func (*GormController) CommitTransaction ¶
func (c *GormController) CommitTransaction(tx *gorm.DB)
func (*GormController) NewTransaction ¶
func (c *GormController) NewTransaction() *gorm.DB
func (*GormController) Rollback ¶
func (c *GormController) Rollback() revel.Result
func (*GormController) RollbackTransaction ¶
func (c *GormController) RollbackTransaction(tx *gorm.DB)
type JWTController ¶
type JWTController struct { GormController User misc.JWTUser }
func (*JWTController) ParseToken ¶
func (ctrl *JWTController) ParseToken() revel.Result
Source Files ¶
Click to show internal directories.
Click to hide internal directories.