Documentation ¶
Index ¶
- Variables
- type DBError
- type DBResult
- type DBService
- type IDE
- type IDERepo
- type IDERuntimeInstall
- type RuntimeInstall
- type User
- type UserIDE
- type UserRepo
- type UserService
- func (u UserService) Add(user User) (sql.Result, *DBError)
- func (u UserService) AddIDERepo(ideRepo IDERepo) (sql.Result, *DBError)
- func (u UserService) AddIDERuntimeInstall(ideRuntimeInstall IDERuntimeInstall) (sql.Result, *DBError)
- func (u UserService) AddUserIDE(userIDE UserIDE) (sql.Result, *DBError)
- func (u UserService) AddUserRepo(userRepo UserRepo) (sql.Result, *DBError)
- func (u UserService) Delete(id int64) *DBError
- func (u UserService) DeleteALLIDEReposForUser(userID int64) *DBError
- func (u UserService) DeleteALLIDERuntimeInstallsForUser(userID int64) *DBError
- func (u UserService) DeleteALLUserIDEsForUser(userID int64) *DBError
- func (u UserService) DeleteALLUserReposForUser(userID int64) *DBError
- func (u UserService) FindIDEByName(name string) (IDE, *DBError)
- func (u UserService) FindIDEReposByUserID(userID int64) ([]int64, *DBError)
- func (u UserService) FindRuntimeInstallByName(name string) (RuntimeInstall, *DBError)
- func (u UserService) FindUserByEmail(email string) (User, *DBError)
- func (u UserService) FindUserByGoogleID(googleIDHashed string) (User, *DBError)
- func (u UserService) FindUserByHashedEmail(hashedEmail string) (User, *DBError)
- func (u UserService) FindUserByUsername(username string) (User, *DBError)
- func (u UserService) FindUserIDEReroURIsByUserAndIDE(username string, ide string) ([]string, *DBError)
- func (u UserService) FindUserIDERuntimeInstallsByUserAndIDE(username string, ide string) ([]string, *DBError)
- func (u UserService) FindUserIDEsByUserID(userID int64) ([]int64, *DBError)
- func (u UserService) FindUserReposUserID(userID int64) ([]int64, *DBError)
- func (u UserService) Get(id int64) (User, *DBError)
- func (u UserService) List() ([]User, *DBError)
- func (u UserService) UpdateGoogleID(user User) (sql.Result, *DBError)
- func (u UserService) UpdateProfile(user User) (sql.Result, *DBError)
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateSchema = `` /* 2746-byte string literal not displayed */
View Source
var DropSchema = `` /* 292-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type DBError ¶
type DBResult ¶
type DBResult struct {
// contains filtered or unexported fields
}
func (DBResult) LastInsertId ¶
func (DBResult) RowsAffected ¶
type IDERuntimeInstall ¶
type RuntimeInstall ¶
type User ¶
type User struct { ID int64 `db:"id"` GoogleID string `db:"google_id"` Username string `db:"username"` Password string `db:"password"` Email string `db:"email"` HashedEmail string `db:"hashed_email"` IsActive bool `db:"is_active"` PrivateKey string `db:"private_key"` PublicKey string `db:"public_key"` PublicKeyID int64 `db:"public_key_id"` DockerTag string }
type UserService ¶
type UserService struct {
*DBService
}
func NewUserService ¶
func NewUserService(db *sqlx.DB) UserService
func (UserService) AddIDERepo ¶
func (u UserService) AddIDERepo(ideRepo IDERepo) (sql.Result, *DBError)
func (UserService) AddIDERuntimeInstall ¶
func (u UserService) AddIDERuntimeInstall(ideRuntimeInstall IDERuntimeInstall) (sql.Result, *DBError)
func (UserService) AddUserIDE ¶
func (u UserService) AddUserIDE(userIDE UserIDE) (sql.Result, *DBError)
func (UserService) AddUserRepo ¶
func (u UserService) AddUserRepo(userRepo UserRepo) (sql.Result, *DBError)
func (UserService) Delete ¶
func (u UserService) Delete(id int64) *DBError
func (UserService) DeleteALLIDEReposForUser ¶
func (u UserService) DeleteALLIDEReposForUser(userID int64) *DBError
func (UserService) DeleteALLIDERuntimeInstallsForUser ¶
func (u UserService) DeleteALLIDERuntimeInstallsForUser(userID int64) *DBError
func (UserService) DeleteALLUserIDEsForUser ¶
func (u UserService) DeleteALLUserIDEsForUser(userID int64) *DBError
func (UserService) DeleteALLUserReposForUser ¶
func (u UserService) DeleteALLUserReposForUser(userID int64) *DBError
func (UserService) FindIDEByName ¶
func (u UserService) FindIDEByName(name string) (IDE, *DBError)
func (UserService) FindIDEReposByUserID ¶
func (u UserService) FindIDEReposByUserID(userID int64) ([]int64, *DBError)
func (UserService) FindRuntimeInstallByName ¶
func (u UserService) FindRuntimeInstallByName(name string) (RuntimeInstall, *DBError)
func (UserService) FindUserByEmail ¶
func (u UserService) FindUserByEmail(email string) (User, *DBError)
func (UserService) FindUserByGoogleID ¶
func (u UserService) FindUserByGoogleID(googleIDHashed string) (User, *DBError)
func (UserService) FindUserByHashedEmail ¶
func (u UserService) FindUserByHashedEmail(hashedEmail string) (User, *DBError)
func (UserService) FindUserByUsername ¶
func (u UserService) FindUserByUsername(username string) (User, *DBError)
func (UserService) FindUserIDEReroURIsByUserAndIDE ¶
func (u UserService) FindUserIDEReroURIsByUserAndIDE(username string, ide string) ([]string, *DBError)
func (UserService) FindUserIDERuntimeInstallsByUserAndIDE ¶
func (u UserService) FindUserIDERuntimeInstallsByUserAndIDE(username string, ide string) ([]string, *DBError)
func (UserService) FindUserIDEsByUserID ¶
func (u UserService) FindUserIDEsByUserID(userID int64) ([]int64, *DBError)
func (UserService) FindUserReposUserID ¶
func (u UserService) FindUserReposUserID(userID int64) ([]int64, *DBError)
func (UserService) List ¶
func (u UserService) List() ([]User, *DBError)
func (UserService) UpdateGoogleID ¶
func (u UserService) UpdateGoogleID(user User) (sql.Result, *DBError)
func (UserService) UpdateProfile ¶
func (u UserService) UpdateProfile(user User) (sql.Result, *DBError)
Click to show internal directories.
Click to hide internal directories.