Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface {
SignIn(credentials *domain.Credentials) (string, error)
}
AuthService is an interface that defines the opearations related to authentication
func NewAuthService ¶
func NewAuthService(us UserService) (AuthService, error)
NewAuthService creates a new AuthService implementation
type Services ¶
type Services struct { User UserService Auth AuthService }
Services is a struct containing all of the services nedded by the API
type UserService ¶
type UserService interface { FindByID(ID uuid.UUID) (*domain.User, error) FindByUsername(username string) (*domain.User, error) CreateUser(user *domain.Credentials) (*domain.User, error) CheckEmail(email string) bool CheckUsername(username string) bool }
UserService is an interface that defines the opearations that you can do with the User domain entity
func NewUserService ¶
func NewUserService(conf *conf.Config) (UserService, error)
NewUserService creates a new UserService implementation
Click to show internal directories.
Click to hide internal directories.