services

package
v0.0.0-...-6eddc5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

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

func NewHealthcheckService(db *mongo.Database) *healthcheckService

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 IAuthService interface {
	VerifyToken(token string) (*jwt.Token, error)
}

type IHealthcheckService

type IHealthcheckService interface {
	Run(c *gin.Context) healthcheck.HealthcheckReport
}

type IOwnerProfileService

type IOwnerProfileService interface{}

type IPetProfileService

type IPetProfileService interface {
	FindById(id string) (*profile.ModelsPet, error)
}

type IProfileService

type IProfileService interface {
	Pet() IPetProfileService
	Owner() IOwnerProfileService
	Healthcheck() IHealthcheckService
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL