mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 (m *MockAuthRepository) GetAPIKeyByValue(ctx context.Context, apiKey string) (*domain.APIKey, error)

func (*MockAuthRepository) RevokeAPIKey

func (m *MockAuthRepository) RevokeAPIKey(ctx context.Context, publicID string) error

Jump to

Keyboard shortcuts

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