Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAuth ¶
type IAuth interface { Signin() (*models.User, error) Signout() error Verify() (*models.User, error) }
IAuth represents the contract that concrete implementations should follow when implementing authentication.
type SAuth ¶
SAuth is a concrete implementation of IAuth
func (*SAuth) Signin ¶
Signin signs in a user and returns the representative user model. If an error occurs, nil is returned for the user and the error field is populated.
Click to show internal directories.
Click to hide internal directories.