Documentation ¶
Index ¶
Constants ¶
View Source
const BCryptCost = 12
BCryptCost is the ammount of iterations applied to bcrypt
Variables ¶
View Source
var ErrUserAlreadyExists = errors.New("user already exists")
ErrUserAlreadyExists is returned when attempting to create a user that already exists
Functions ¶
func HashPassword ¶
HashPassword hashes a password
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers defines a handler for user
func NewHandlers ¶
NewHandlers creates a new handler for sound
func (*Handlers) CreateAccount ¶
CreateAccount creates a user account
func (*Handlers) CreateNewAccount ¶
func (h *Handlers) CreateNewAccount(ctx context.Context, pAccount prospectAccount) (*models.User, error)
CreateNewAccount creates a new account
func (*Handlers) Routes ¶
func (h *Handlers) Routes(rg *gin.RouterGroup)
Routes initializes the routes for the audio handlers
Click to show internal directories.
Click to hide internal directories.