Documentation ¶
Index ¶
- type PreparedTransaction
- func (p *PreparedTransaction) AddCounterparty(*models.Counterparty) error
- func (p *PreparedTransaction) AddEnvelope(*models.SecureEnvelope) error
- func (p *PreparedTransaction) Commit() error
- func (p *PreparedTransaction) Created() bool
- func (p *PreparedTransaction) Fetch() (*models.Transaction, error)
- func (p *PreparedTransaction) Rollback() error
- func (p *PreparedTransaction) Update(*models.Transaction) error
- type Store
- func (s *Store) Close() error
- func (s *Store) CreateAPIKey(context.Context, *models.APIKey) error
- func (s *Store) CreateAccount(context.Context, *models.Account) error
- func (s *Store) CreateCounterparty(context.Context, *models.Counterparty) error
- func (s *Store) CreateCryptoAddress(context.Context, *models.CryptoAddress) error
- func (s *Store) CreateSecureEnvelope(context.Context, *models.SecureEnvelope) error
- func (s *Store) CreateTransaction(context.Context, *models.Transaction) error
- func (s *Store) CreateUser(context.Context, *models.User) error
- func (s *Store) DeleteAPIKey(ctx context.Context, keyID ulid.ULID) error
- func (s *Store) DeleteAccount(ctx context.Context, id ulid.ULID) error
- func (s *Store) DeleteCounterparty(ctx context.Context, counterpartyID ulid.ULID) error
- func (s *Store) DeleteCryptoAddress(ctx context.Context, accountID, cryptoAddressID ulid.ULID) error
- func (s *Store) DeleteSecureEnvelope(ctx context.Context, txID uuid.UUID, envID ulid.ULID) error
- func (s *Store) DeleteTransaction(context.Context, uuid.UUID) error
- func (s *Store) DeleteUser(ctx context.Context, userID ulid.ULID) error
- func (s *Store) LatestSecureEnvelope(ctx context.Context, txID uuid.UUID, direction string) (*models.SecureEnvelope, error)
- func (s *Store) ListAPIKeys(context.Context, *models.PageInfo) (*models.APIKeyPage, error)
- func (s *Store) ListAccounts(context.Context, *models.PageInfo) (*models.AccountsPage, error)
- func (s *Store) ListCounterparties(ctx context.Context, page *models.PageInfo) (*models.CounterpartyPage, error)
- func (s *Store) ListCounterpartySourceInfo(ctx context.Context, source string) ([]*models.CounterpartySourceInfo, error)
- func (s *Store) ListCryptoAddresses(ctx context.Context, accountID ulid.ULID, page *models.PageInfo) (*models.CryptoAddressPage, error)
- func (s *Store) ListSecureEnvelopes(ctx context.Context, txID uuid.UUID, page *models.PageInfo) (*models.SecureEnvelopePage, error)
- func (s *Store) ListTransactions(context.Context, *models.PageInfo) (*models.TransactionPage, error)
- func (s *Store) ListUsers(ctx context.Context, page *models.PageInfo) (*models.UserPage, error)
- func (s *Store) LookupCounterparty(ctx context.Context, commonName string) (*models.Counterparty, error)
- func (s *Store) PrepareTransaction(context.Context, uuid.UUID) (models.PreparedTransaction, error)
- func (s *Store) RetrieveAPIKey(ctx context.Context, clientIDOrKeyID any) (*models.APIKey, error)
- func (s *Store) RetrieveAccount(ctx context.Context, id ulid.ULID) (*models.Account, error)
- func (s *Store) RetrieveCounterparty(ctx context.Context, counterpartyID ulid.ULID) (*models.Counterparty, error)
- func (s *Store) RetrieveCryptoAddress(ctx context.Context, accountID, cryptoAddressID ulid.ULID) (*models.CryptoAddress, error)
- func (s *Store) RetrieveSecureEnvelope(ctx context.Context, txID uuid.UUID, envID ulid.ULID) (*models.SecureEnvelope, error)
- func (s *Store) RetrieveTransaction(context.Context, uuid.UUID) (*models.Transaction, error)
- func (s *Store) RetrieveUser(ctx context.Context, emailOrUserID any) (*models.User, error)
- func (s *Store) SetUserPassword(ctx context.Context, userID ulid.ULID, password string) (err error)
- func (s *Store) UpdateAPIKey(context.Context, *models.APIKey) error
- func (s *Store) UpdateAccount(context.Context, *models.Account) error
- func (s *Store) UpdateCounterparty(context.Context, *models.Counterparty) error
- func (s *Store) UpdateCryptoAddress(context.Context, *models.CryptoAddress) error
- func (s *Store) UpdateSecureEnvelope(context.Context, *models.SecureEnvelope) error
- func (s *Store) UpdateTransaction(context.Context, *models.Transaction) error
- func (s *Store) UpdateUser(context.Context, *models.User) error
- func (s *Store) UseTravelAddressFactory(models.TravelAddressFactory)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreparedTransaction ¶
type PreparedTransaction struct{}
func (*PreparedTransaction) AddCounterparty ¶
func (p *PreparedTransaction) AddCounterparty(*models.Counterparty) error
func (*PreparedTransaction) AddEnvelope ¶
func (p *PreparedTransaction) AddEnvelope(*models.SecureEnvelope) error
func (*PreparedTransaction) Commit ¶
func (p *PreparedTransaction) Commit() error
func (*PreparedTransaction) Created ¶
func (p *PreparedTransaction) Created() bool
func (*PreparedTransaction) Fetch ¶
func (p *PreparedTransaction) Fetch() (*models.Transaction, error)
func (*PreparedTransaction) Rollback ¶
func (p *PreparedTransaction) Rollback() error
func (*PreparedTransaction) Update ¶
func (p *PreparedTransaction) Update(*models.Transaction) error
type Store ¶
type Store struct{}
Store implements the store.Store interface implemented as an in-memory mock interface for testing and development purposes.
func (*Store) CreateCounterparty ¶
func (*Store) CreateCryptoAddress ¶
func (*Store) CreateSecureEnvelope ¶
func (*Store) CreateTransaction ¶
func (*Store) DeleteAPIKey ¶
func (*Store) DeleteAccount ¶
func (*Store) DeleteCounterparty ¶
func (*Store) DeleteCryptoAddress ¶
func (*Store) DeleteSecureEnvelope ¶
func (*Store) DeleteTransaction ¶
func (*Store) LatestSecureEnvelope ¶ added in v0.14.0
func (*Store) ListAPIKeys ¶
func (*Store) ListAccounts ¶
func (*Store) ListCounterparties ¶
func (*Store) ListCounterpartySourceInfo ¶
func (*Store) ListCryptoAddresses ¶
func (*Store) ListSecureEnvelopes ¶
func (*Store) ListTransactions ¶
func (*Store) LookupCounterparty ¶
func (*Store) PrepareTransaction ¶
func (*Store) RetrieveAPIKey ¶
func (*Store) RetrieveAccount ¶
func (*Store) RetrieveCounterparty ¶
func (*Store) RetrieveCryptoAddress ¶
func (*Store) RetrieveSecureEnvelope ¶
func (*Store) RetrieveTransaction ¶
func (*Store) RetrieveUser ¶
func (*Store) SetUserPassword ¶
func (*Store) UpdateCounterparty ¶
func (*Store) UpdateCryptoAddress ¶
func (*Store) UpdateSecureEnvelope ¶
func (*Store) UpdateTransaction ¶
func (*Store) UseTravelAddressFactory ¶
func (s *Store) UseTravelAddressFactory(models.TravelAddressFactory)
Click to show internal directories.
Click to hide internal directories.