Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAuthentication = errors.New("invalid authentication") ErrNotFound = errors.New("not found") )
View Source
var (
ErrTokenExpired = errors.New("token is expired")
)
Functions ¶
func NewHealthcheckService ¶
Types ¶
type AuthService ¶
type AuthService struct {
JwtSecret []byte
}
func NewAuthService ¶
func NewAuthService(jwtSecret string) *AuthService
func (*AuthService) VerifyToken ¶
func (s *AuthService) VerifyToken(token string) (*jwt.Token, error)
type IAuthService ¶
type IHealthcheckService ¶
type IHealthcheckService interface {
Run(c *gin.Context) healthcheck.HealthcheckReport
}
type IOwnerProfileService ¶
type IOwnerProfileService interface{}
type IPetProfileService ¶
type IProfileService ¶
type IProfileService interface { Pet() IPetProfileService Owner() IOwnerProfileService Healthcheck() IHealthcheckService }
Click to show internal directories.
Click to hide internal directories.