Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminRepository ¶
type AdminRepository struct {
// contains filtered or unexported fields
}
AdminRepository implements Repository.
func (*AdminRepository) CreateAccount ¶
func (ar *AdminRepository) CreateAccount(username, password string) (string, error)
CreateAccount implements Repository.
func (*AdminRepository) LoginAccount ¶
func (a *AdminRepository) LoginAccount(username, password string) (string, error)
LoginAccount implements Repository.
type Repository ¶
type Repository interface { // CreateAccount creates a new admin and returns their id. CreateAccount(username, password string) (string, error) // LoginAccount authenticate and admin and returns their id. LoginAccount(username, password string) (string, error) }
func NewRepository ¶
NewRepository creates a new instance of *AdminRepo.
Click to show internal directories.
Click to hide internal directories.