Documentation ¶
Index ¶
Constants ¶
View Source
const ( Admin = "admin" User = "user" )
Variables ¶
This section is empty.
Functions ¶
func NewBootstrapService ¶
func NewBootstrapService(us UserService) *bootstrapService
func NewUserService ¶
func NewUserService(conn db.Connection) *userService
Types ¶
type BootstrapService ¶
type BootstrapService interface {
InitUsers()
}
type UserService ¶
type UserService interface { FindAll() (*[]models.User, error) FindActive() (*[]models.User, error) Search(q string, pagination *models.Pagination) (*[]models.User, error) GetById(id string) (*models.User, error) GetByEmail(email string) (*models.User, error) Create(user models.User) (*models.User, error) EncryptPassword(password string) (string, error) VerifyPassword(hashed, password string) error IsEmpty() (bool, error) }
Click to show internal directories.
Click to hide internal directories.