Documentation
¶
Index ¶
- Constants
- type Checkpoint
- type Store
- func (s *Store) Accounts(ctx context.Context, id, cursor string, limit int, now time.Time) (ranjit.Page[ranjit.Account], error)
- func (s *Store) Claim(ctx context.Context, now time.Time, lease time.Duration) (ranjit.Job, error)
- func (s *Store) ClaimSelected(ctx context.Context, now time.Time, lease time.Duration, ...) (ranjit.Job, error)
- func (s *Store) Close() error
- func (s *Store) Complete(ctx context.Context, j ranjit.Job, batch provider.Snapshot, now time.Time) error
- func (s *Store) ConfiguredConnections(ctx context.Context, institutions []string) (map[string]bool, error)
- func (s *Store) Connection(ctx context.Context, id string, now time.Time) (ranjit.Connection, error)
- func (s *Store) Connections(ctx context.Context, customer, cursor string, limit int, now time.Time) (ranjit.Page[ranjit.Connection], error)
- func (s *Store) CreateAuthorizedConnection(ctx context.Context, c ranjit.Connection) error
- func (s *Store) CreateConnection(ctx context.Context, c ranjit.Connection, tokenHash string, deadline time.Time) error
- func (s *Store) Decide(ctx context.Context, hash string, approve bool, now time.Time) (ranjit.Connection, error)
- func (s *Store) Enqueue(ctx context.Context, id string, now time.Time) (ranjit.Job, error)
- func (s *Store) Expire(ctx context.Context, now time.Time) error
- func (s *Store) Fail(ctx context.Context, j ranjit.Job, code string, now time.Time) error
- func (s *Store) FailAfter(ctx context.Context, j ranjit.Job, code string, now time.Time, ...) error
- func (s *Store) Import(ctx context.Context, customer, account string, input statement.Statement, ...) (ranjit.ImportResult, error)
- func (s *Store) Job(ctx context.Context, id string) (ranjit.Job, error)
- func (s *Store) PendingConsent(ctx context.Context, hash string, now time.Time) (ranjit.Connection, error)
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) Revoke(ctx context.Context, id string, now time.Time) error
- func (s *Store) Schedule(ctx context.Context, now time.Time, interval time.Duration) error
- func (s *Store) ScheduleSelected(ctx context.Context, now time.Time, interval time.Duration, ...) error
- func (s *Store) Status(ctx context.Context, id string, now time.Time) (ranjit.ConnectionStatus, error)
- func (s *Store) Transactions(ctx context.Context, accountID, cursor string, limit int, now time.Time) (ranjit.Page[ranjit.Transaction], error)
- func (s *Store) Yield(ctx context.Context, j ranjit.Job, now time.Time) error
Constants ¶
View Source
const MaxAttempts = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClaimSelected ¶
func (*Store) ConfiguredConnections ¶
func (s *Store) ConfiguredConnections(ctx context.Context, institutions []string) (map[string]bool, error)
ConfiguredConnections excludes profiles absent from this process. A separate CLI process may add a profile while the server still has its old configuration.
func (*Store) Connection ¶
func (*Store) Connections ¶
func (*Store) CreateAuthorizedConnection ¶
CreateAuthorizedConnection persists the operator's local grant and first job atomically.
func (*Store) CreateConnection ¶
func (*Store) Decide ¶
func (s *Store) Decide(ctx context.Context, hash string, approve bool, now time.Time) (ranjit.Connection, error)
Decide consumes the authorization token and queues the first sync in the same transaction.
func (*Store) PendingConsent ¶
func (*Store) Revoke ¶
Revoke removes normalized data before returning. The connection record is retained.
func (*Store) ScheduleSelected ¶
func (*Store) Transactions ¶
Click to show internal directories.
Click to hide internal directories.