Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func (AuthService) Logout ¶
func (s AuthService) Logout(req *LogoutReq, _ *struct{}) error
func (AuthService) Validate ¶
func (s AuthService) Validate(req *ValidateReq, _ *struct{}) error
type Client ¶
type Repository ¶
type Repository interface {
Create(username string, password string) (int64, error)
Auth(username string, password string) (string, error)
Deauth(username string, token string) error
Validate(username string, token string) error
}
func NewSQLiteRepository ¶
func NewSQLiteRepository(urn string) (Repository, error)
type Service ¶
type Service interface {
Signup(req *SignupReq, res *int64) error
Login(req *LoginReq, res *string) error
Logout(req *LogoutReq, res *struct{}) error
Validate(req *ValidateReq, res *struct{}) error
}
func NewService ¶
func NewService(r Repository) Service
type ValidateReq ¶
Click to show internal directories.
Click to hide internal directories.