Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
WireSet = wire.NewSet(NewRepository)
)
Functions ¶
This section is empty.
Types ¶
type AppUser ¶
type PgUserRepository ¶
type PgUserRepository struct {
// contains filtered or unexported fields
}
func (*PgUserRepository) Authenticate ¶
func (m *PgUserRepository) Authenticate(username string, password string) (bool, error)
func (*PgUserRepository) CreateAccount ¶
func (*PgUserRepository) GetAccount ¶
func (m *PgUserRepository) GetAccount(username string) (*AppUser, error)
type UserRepository ¶
type UserRepository interface { Authenticate(username string, password string) (bool, error) CreateAccount(username string, password string, firstName string, lastName string) (bool, error) GetAccount(username string) (*AppUser, error) }
func NewRepository ¶
func NewRepository(db gorm.DB) UserRepository
Click to show internal directories.
Click to hide internal directories.