Documentation
¶
Index ¶
- func Create() dbrepo.Repository
- type InMemoryRepository
- func (r *InMemoryRepository) AddAuthRequest(ctx context.Context, ar *entity.AuthRequest) error
- func (r *InMemoryRepository) Close()
- func (r *InMemoryRepository) DeleteAuthRequestByState(ctx context.Context, state string) error
- func (r *InMemoryRepository) GetAuthRequestByState(ctx context.Context, state string) (*entity.AuthRequest, error)
- func (r *InMemoryRepository) Open() error
- func (r *InMemoryRepository) PruneAuthRequests(ctx context.Context) (uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create() dbrepo.Repository
Types ¶
type InMemoryRepository ¶
type InMemoryRepository struct {
// contains filtered or unexported fields
}
func (*InMemoryRepository) AddAuthRequest ¶
func (r *InMemoryRepository) AddAuthRequest(ctx context.Context, ar *entity.AuthRequest) error
func (*InMemoryRepository) Close ¶
func (r *InMemoryRepository) Close()
func (*InMemoryRepository) DeleteAuthRequestByState ¶
func (r *InMemoryRepository) DeleteAuthRequestByState(ctx context.Context, state string) error
func (*InMemoryRepository) GetAuthRequestByState ¶
func (r *InMemoryRepository) GetAuthRequestByState(ctx context.Context, state string) (*entity.AuthRequest, error)
func (*InMemoryRepository) Open ¶
func (r *InMemoryRepository) Open() error
func (*InMemoryRepository) PruneAuthRequests ¶
func (r *InMemoryRepository) PruneAuthRequests(ctx context.Context) (uint, error)
Click to show internal directories.
Click to hide internal directories.