Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandlers ¶
func CreateHandlers(r *gin.RouterGroup, s Service, l log.Logger)
CreateHandlers sets up routing to the HTTP request
Types ¶
type AuthenticationRequest ¶
type AuthenticationRequest struct { UserName string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` }
AuthenticationRequest request model sent to authenticate players
type Controller ¶
Controller contains interface for authentication handlers
type Repository ¶
Repository contains interfaces for authentication services
func NewRepository ¶
func NewRepository(db *database.DB, l log.Logger) Repository
NewRepository creates a new instance for authentication repository
type Service ¶
type Service interface { }
Service contains interfaces for authentication services
func NewService ¶
func NewService(r Repository, l log.Logger) Service
NewService creates new authentication service
Click to show internal directories.
Click to hide internal directories.