Versions in this module Expand all Collapse all v0 v0.10.5 Oct 12, 2021 v0.10.4 Oct 11, 2021 v0.10.3 Oct 11, 2021 v0.10.2 Oct 11, 2021 v0.10.1 Oct 11, 2021 v0.10.0 Oct 11, 2021 Changes in this version + func Logrus(logger *logrus.Logger) gin.HandlerFunc + func NewMiddelware(authUrl string, db *sql.DB) *middleware + type Application struct + Config *Config + GIT git.Repo + Middleware Middleware + Migrations migrations.Migrations + Models data.Models + func NewApplication(db *sql.DB, cfg *Config) (*Application, error) + func (app *Application) Routes() *gin.Engine + type Config struct + Auth string + DB struct{ ... } + Env string + GitToken string + GitURL string + GitUserName string + Port int + Version string + type Middleware interface + Authenticate func(c *gin.Context) + Authorize func(code string) gin.HandlerFunc + HasPermission func(code string, permission []string) bool + type Team struct + CreatedAt time.Time + ID int64 + Meta meta + Name string + NumMembers int + UserAccounts []*UserAccount + Version int + type UserAccount struct + Activated bool + CreatedAt time.Time + Email string + ID int64 + Name string + Permissions []string + Role string + Team *Team + Version int