Documentation ¶
Index ¶
- type MockAuthRepository
- func (m *MockAuthRepository) CreateAPIKey(ctx context.Context, apiKey *domain.APIKeyCreate) (*domain.APIKey, error)
- func (m *MockAuthRepository) GetAPIKeyByValue(ctx context.Context, apiKey string) (*domain.APIKey, error)
- func (m *MockAuthRepository) RevokeAPIKey(ctx context.Context, publicID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthRepository ¶
type MockAuthRepository struct { CreateAPIKeyFn func(ctx context.Context, apiKey *domain.APIKeyCreate) (*domain.APIKey, error) GetAPIKeyByValueFn func(ctx context.Context, apiKey string) (*domain.APIKey, error) RevokeAPIKeyFn func(ctx context.Context, publicID string) error }
func (*MockAuthRepository) CreateAPIKey ¶
func (m *MockAuthRepository) CreateAPIKey(ctx context.Context, apiKey *domain.APIKeyCreate) (*domain.APIKey, error)
func (*MockAuthRepository) GetAPIKeyByValue ¶
func (*MockAuthRepository) RevokeAPIKey ¶
func (m *MockAuthRepository) RevokeAPIKey(ctx context.Context, publicID string) error
Click to show internal directories.
Click to hide internal directories.