Documentation ¶
Index ¶
- func NewMiddlewares(r *Repository)
- type AuthUser
- type Repository
- func (m *Repository) HasEmail(next http.Handler) http.Handler
- func (m *Repository) HasUsername(next http.Handler) http.Handler
- func (m *Repository) IsAuth(next http.Handler) http.Handler
- func (m *Repository) IsUser(next http.Handler) http.Handler
- func (m *Repository) ValidateAuthUser(next http.Handler) http.Handler
- func (m *Repository) ValidateUpdatePasswordPayload(next http.Handler) http.Handler
- func (m *Repository) ValidateUpdateUserPasswordPayload(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddlewares ¶
func NewMiddlewares(r *Repository)
Types ¶
type Repository ¶
type Repository struct { App *config.Application DB database.DatabaseRepository }
var Repo *Repository
func NewRepo ¶
func NewRepo(app *config.Application, db *mongo.Database) *Repository
func (*Repository) HasUsername ¶
func (m *Repository) HasUsername(next http.Handler) http.Handler
func (*Repository) ValidateAuthUser ¶
func (m *Repository) ValidateAuthUser(next http.Handler) http.Handler
func (*Repository) ValidateUpdatePasswordPayload ¶
func (m *Repository) ValidateUpdatePasswordPayload(next http.Handler) http.Handler
func (*Repository) ValidateUpdateUserPasswordPayload ¶
func (m *Repository) ValidateUpdateUserPasswordPayload(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.