Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyRepository ¶
type CompanyRepository interface { CompanyList() ([]*hycompany.Company, error) GetCompany(companyID int) (*hycompany.Company, error) IsCompany(companyID int) (bool, error) InsertCompany(name, address string, countryID int16) (int, error) UpdateCompany(companyID int, name, address string, countryID int16) (int, error) DeleteCompany(companyID int) (int, error) }
CompanyRepository interface
func NewCompanyRepository ¶
func NewCompanyRepository(dbConn *sql.DB) CompanyRepository
NewCompanyRepository returns CompanyRepository
type CustomCompany ¶
type TechRepository ¶
type TechRepository interface { TechList() ([]*hytech.Tech, error) GetTech(techID int) (*hytech.Tech, error) IsTech(techID int) (bool, error) InsertTech(name string) (int, error) UpdateTech(techID int, name string) (int, error) DeleteTech(techID int) (int, error) }
TechRepository interface
func NewTechRepository ¶
func NewTechRepository(dbConn *sql.DB) TechRepository
NewTechRepository returns TechRepository
type UserRepository ¶
type UserRepository interface { Login(email, password string) (int, error) UserList() ([]*hyuser.User, error) GetUser(userID int) (*hyuser.User, error) IsUser(userID int) (bool, error) InsertUser(name, email, password string) (int, error) UpdateUser(userID int, name, email, password string) (int, error) DeleteUser(userID int) (int, error) }
UserRepository interface
func NewUserRepository ¶
func NewUserRepository(dbConn *sql.DB, hash encryption.Hasher) UserRepository
NewUserRepository returns UserRepository
type UserTechRepository ¶
type UserTechRepository interface { GetUserLikeTechs(userID int) ([]UserTech, error) GetUserDisLikeTechs(userID int) ([]UserTech, error) }
UserTechRepository interface
func NewUserTechRepository ¶
func NewUserTechRepository(dbConn *sql.DB) UserTechRepository
NewUserTechRepository returns UserTechRepository
type UserWorkHistoryRepository ¶
type UserWorkHistoryRepository interface {
GetUserWorks(userID int) ([]*hyuserworkhistory.Userworkhistory, error)
}
UserWorkHistoryRepository interface
func NewUserWorkHistoryRepository ¶
func NewUserWorkHistoryRepository(dbConn *sql.DB) UserWorkHistoryRepository
NewUserWorkHistoryRepository returns UserWorkHistoryRepository
Click to show internal directories.
Click to hide internal directories.