Documentation ¶
Overview ¶
Package services is a generated GoMock package.
Index ¶
- func IsVaccinationAfterAllowedDate(vaccination *models.Vaccination) bool
- func IsVaccinationDoseOk(vaccination *models.Vaccination) bool
- type AuthService
- type DefaultAuthService
- type DefaultClaims
- type DefaultDrugsService
- func (service *DefaultDrugsService) Create(ctx context.Context, drug *models.Drug) error
- func (service *DefaultDrugsService) Delete(ctx context.Context, drug *models.Drug) error
- func (service *DefaultDrugsService) Find(ctx context.Context) ([]models.Drug, error)
- func (service *DefaultDrugsService) Update(ctx context.Context, drug *models.Drug) error
- type DefaultVaccinationsService
- func (service *DefaultVaccinationsService) Create(ctx context.Context, vaccination *models.Vaccination) error
- func (service *DefaultVaccinationsService) Delete(ctx context.Context, vaccination *models.Vaccination) error
- func (service *DefaultVaccinationsService) Find(ctx context.Context) ([]models.Vaccination, error)
- func (service *DefaultVaccinationsService) Update(ctx context.Context, vaccination *models.Vaccination) error
- type DrugsService
- type JwtTokenManager
- type JwtTokenManagerOption
- func WithIssuer(issuer string) JwtTokenManagerOption
- func WithSigningKey(signingKey any) JwtTokenManagerOption
- func WithSigningMethod(signingMethod jwt.SigningMethod) JwtTokenManagerOption
- func WithTimeout(timeout time.Duration) JwtTokenManagerOption
- func WithVerifyingKey(verifyingKey any) JwtTokenManagerOption
- type MockAuthService
- func (m *MockAuthService) Authorize(ctx context.Context, tokenString string) (*models.User, error)
- func (m *MockAuthService) EXPECT() *MockAuthServiceMockRecorder
- func (m *MockAuthService) Login(ctx context.Context, user *models.User) error
- func (m *MockAuthService) Signup(ctx context.Context, user *models.User) error
- type MockAuthServiceMockRecorder
- type MockDrugsService
- func (m *MockDrugsService) Create(ctx context.Context, drug *models.Drug) error
- func (m *MockDrugsService) Delete(ctx context.Context, drug *models.Drug) error
- func (m *MockDrugsService) EXPECT() *MockDrugsServiceMockRecorder
- func (m *MockDrugsService) Find(ctx context.Context) ([]models.Drug, error)
- func (m *MockDrugsService) Update(ctx context.Context, drug *models.Drug) error
- type MockDrugsServiceMockRecorder
- type MockTokenManager
- type MockTokenManagerMockRecorder
- type MockVaccinationsService
- func (m *MockVaccinationsService) Create(ctx context.Context, vaccination *models.Vaccination) error
- func (m *MockVaccinationsService) Delete(ctx context.Context, vaccination *models.Vaccination) error
- func (m *MockVaccinationsService) EXPECT() *MockVaccinationsServiceMockRecorder
- func (m *MockVaccinationsService) Find(ctx context.Context) ([]models.Vaccination, error)
- func (m *MockVaccinationsService) Update(ctx context.Context, vaccination *models.Vaccination) error
- type MockVaccinationsServiceMockRecorder
- func (mr *MockVaccinationsServiceMockRecorder) Create(ctx, vaccination any) *gomock.Call
- func (mr *MockVaccinationsServiceMockRecorder) Delete(ctx, vaccination any) *gomock.Call
- func (mr *MockVaccinationsServiceMockRecorder) Find(ctx any) *gomock.Call
- func (mr *MockVaccinationsServiceMockRecorder) Update(ctx, vaccination any) *gomock.Call
- type TokenManager
- type VaccinationsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsVaccinationAfterAllowedDate ¶
func IsVaccinationAfterAllowedDate(vaccination *models.Vaccination) bool
func IsVaccinationDoseOk ¶
func IsVaccinationDoseOk(vaccination *models.Vaccination) bool
Types ¶
type AuthService ¶
type DefaultAuthService ¶
type DefaultAuthService struct {
// contains filtered or unexported fields
}
func NewDefaultAuthService ¶
func NewDefaultAuthService(transactionHandler datasource.TransactionHandler, tokenManager TokenManager, passwordManager feather_security.PasswordManager) *DefaultAuthService
type DefaultClaims ¶
type DefaultClaims struct { jwt.RegisteredClaims models.User }
type DefaultDrugsService ¶
type DefaultDrugsService struct {
// contains filtered or unexported fields
}
func NewDefaultDrugsService ¶
func NewDefaultDrugsService(transactionHandler datasource.TransactionHandler) *DefaultDrugsService
type DefaultVaccinationsService ¶
type DefaultVaccinationsService struct {
// contains filtered or unexported fields
}
func NewDefaultVaccinationsService ¶
func NewDefaultVaccinationsService(transactionHandler datasource.TransactionHandler) *DefaultVaccinationsService
func (*DefaultVaccinationsService) Create ¶
func (service *DefaultVaccinationsService) Create(ctx context.Context, vaccination *models.Vaccination) error
func (*DefaultVaccinationsService) Delete ¶
func (service *DefaultVaccinationsService) Delete(ctx context.Context, vaccination *models.Vaccination) error
func (*DefaultVaccinationsService) Find ¶
func (service *DefaultVaccinationsService) Find(ctx context.Context) ([]models.Vaccination, error)
func (*DefaultVaccinationsService) Update ¶
func (service *DefaultVaccinationsService) Update(ctx context.Context, vaccination *models.Vaccination) error
type DrugsService ¶
type JwtTokenManager ¶
type JwtTokenManager struct {
// contains filtered or unexported fields
}
func NewJwtTokenManager ¶
func NewJwtTokenManager(options ...JwtTokenManagerOption) *JwtTokenManager
type JwtTokenManagerOption ¶
type JwtTokenManagerOption func(tokenManager *JwtTokenManager)
func WithIssuer ¶
func WithIssuer(issuer string) JwtTokenManagerOption
func WithSigningKey ¶
func WithSigningKey(signingKey any) JwtTokenManagerOption
func WithSigningMethod ¶
func WithSigningMethod(signingMethod jwt.SigningMethod) JwtTokenManagerOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) JwtTokenManagerOption
func WithVerifyingKey ¶
func WithVerifyingKey(verifyingKey any) JwtTokenManagerOption
type MockAuthService ¶
type MockAuthService struct {
// contains filtered or unexported fields
}
MockAuthService is a mock of AuthService interface.
func NewMockAuthService ¶
func NewMockAuthService(ctrl *gomock.Controller) *MockAuthService
NewMockAuthService creates a new mock instance.
func (*MockAuthService) EXPECT ¶
func (m *MockAuthService) EXPECT() *MockAuthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthServiceMockRecorder ¶
type MockAuthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthServiceMockRecorder is the mock recorder for MockAuthService.
func (*MockAuthServiceMockRecorder) Authorize ¶
func (mr *MockAuthServiceMockRecorder) Authorize(ctx, tokenString any) *gomock.Call
Authorize indicates an expected call of Authorize.
type MockDrugsService ¶
type MockDrugsService struct {
// contains filtered or unexported fields
}
MockDrugsService is a mock of DrugsService interface.
func NewMockDrugsService ¶
func NewMockDrugsService(ctrl *gomock.Controller) *MockDrugsService
NewMockDrugsService creates a new mock instance.
func (*MockDrugsService) EXPECT ¶
func (m *MockDrugsService) EXPECT() *MockDrugsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDrugsServiceMockRecorder ¶
type MockDrugsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockDrugsServiceMockRecorder is the mock recorder for MockDrugsService.
func (*MockDrugsServiceMockRecorder) Create ¶
func (mr *MockDrugsServiceMockRecorder) Create(ctx, drug any) *gomock.Call
Create indicates an expected call of Create.
func (*MockDrugsServiceMockRecorder) Delete ¶
func (mr *MockDrugsServiceMockRecorder) Delete(ctx, drug any) *gomock.Call
Delete indicates an expected call of Delete.
type MockTokenManager ¶
type MockTokenManager struct {
// contains filtered or unexported fields
}
MockTokenManager is a mock of TokenManager interface.
func NewMockTokenManager ¶
func NewMockTokenManager(ctrl *gomock.Controller) *MockTokenManager
NewMockTokenManager creates a new mock instance.
func (*MockTokenManager) EXPECT ¶
func (m *MockTokenManager) EXPECT() *MockTokenManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenManagerMockRecorder ¶
type MockTokenManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenManagerMockRecorder is the mock recorder for MockTokenManager.
type MockVaccinationsService ¶
type MockVaccinationsService struct {
// contains filtered or unexported fields
}
MockVaccinationsService is a mock of VaccinationsService interface.
func NewMockVaccinationsService ¶
func NewMockVaccinationsService(ctrl *gomock.Controller) *MockVaccinationsService
NewMockVaccinationsService creates a new mock instance.
func (*MockVaccinationsService) Create ¶
func (m *MockVaccinationsService) Create(ctx context.Context, vaccination *models.Vaccination) error
Create mocks base method.
func (*MockVaccinationsService) Delete ¶
func (m *MockVaccinationsService) Delete(ctx context.Context, vaccination *models.Vaccination) error
Delete mocks base method.
func (*MockVaccinationsService) EXPECT ¶
func (m *MockVaccinationsService) EXPECT() *MockVaccinationsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVaccinationsService) Find ¶
func (m *MockVaccinationsService) Find(ctx context.Context) ([]models.Vaccination, error)
Find mocks base method.
func (*MockVaccinationsService) Update ¶
func (m *MockVaccinationsService) Update(ctx context.Context, vaccination *models.Vaccination) error
Update mocks base method.
type MockVaccinationsServiceMockRecorder ¶
type MockVaccinationsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockVaccinationsServiceMockRecorder is the mock recorder for MockVaccinationsService.
func (*MockVaccinationsServiceMockRecorder) Create ¶
func (mr *MockVaccinationsServiceMockRecorder) Create(ctx, vaccination any) *gomock.Call
Create indicates an expected call of Create.
func (*MockVaccinationsServiceMockRecorder) Delete ¶
func (mr *MockVaccinationsServiceMockRecorder) Delete(ctx, vaccination any) *gomock.Call
Delete indicates an expected call of Delete.
type TokenManager ¶
type VaccinationsService ¶
type VaccinationsService interface { Create(ctx context.Context, vaccination *models.Vaccination) error Update(ctx context.Context, vaccination *models.Vaccination) error Delete(ctx context.Context, vaccination *models.Vaccination) error Find(ctx context.Context) ([]models.Vaccination, error) }