Documentation
¶
Index ¶
- Variables
- func Migrate(ctx context.Context, db *sql.DB) error
- type Repository
- func (r *Repository) CheckRuntime(ctx context.Context) error
- func (r *Repository) LocateCode(ctx context.Context, h string) (op.ConsentRecord, error)
- func (r *Repository) LocateConsent(ctx context.Context, id string) (op.ConsentRecord, error)
- func (r *Repository) LocateGrant(ctx context.Context, id string) (op.GrantRecord, error)
- func (r *Repository) LocateToken(ctx context.Context, h string) (op.TokenRecord, op.GrantRecord, error)
- func (r *Repository) Ready(ctx context.Context) error
- func (r *Repository) Transaction(ctx context.Context, owner, app string, run func(op.Transaction) error) error
- func (r *Repository) WorkCandidates(ctx context.Context, now time.Time, limit int) ([]op.GrantRecord, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Schema string
Functions ¶
Types ¶
type Repository ¶
func (*Repository) CheckRuntime ¶
func (r *Repository) CheckRuntime(ctx context.Context) error
func (*Repository) LocateCode ¶
func (r *Repository) LocateCode(ctx context.Context, h string) (op.ConsentRecord, error)
func (*Repository) LocateConsent ¶
func (r *Repository) LocateConsent(ctx context.Context, id string) (op.ConsentRecord, error)
func (*Repository) LocateGrant ¶
func (r *Repository) LocateGrant(ctx context.Context, id string) (op.GrantRecord, error)
func (*Repository) LocateToken ¶
func (r *Repository) LocateToken(ctx context.Context, h string) (op.TokenRecord, op.GrantRecord, error)
func (*Repository) Transaction ¶
func (r *Repository) Transaction(ctx context.Context, owner, app string, run func(op.Transaction) error) error
func (*Repository) WorkCandidates ¶
func (r *Repository) WorkCandidates(ctx context.Context, now time.Time, limit int) ([]op.GrantRecord, error)
Click to show internal directories.
Click to hide internal directories.