vault

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificationStorage

type CertificationStorage struct {
	*tokendb.DB
}

func (*CertificationStorage) Exists

func (t *CertificationStorage) Exists(id *token.ID) bool

func (*CertificationStorage) Store

func (t *CertificationStorage) Store(certifications map[*token.ID][]byte) error

type QueryEngine

type QueryEngine struct {
	*tokendb.DB
	// contains filtered or unexported fields
}

func (*QueryEngine) GetStatus

func (q *QueryEngine) GetStatus(txID string) (driver.TxStatus, string, error)

func (*QueryEngine) IsMine

func (q *QueryEngine) IsMine(id *token.ID) (bool, error)

func (*QueryEngine) IsPending

func (q *QueryEngine) IsPending(id *token.ID) (bool, error)

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

func NewVault

func NewVault(tmsID token2.TMSID, auditdb *auditdb.DB, ttxdb *ttxdb.DB, tokenDB *tokendb.DB) (*Vault, error)

func (*Vault) CertificationStorage

func (v *Vault) CertificationStorage() driver.CertificationStorage

func (*Vault) DeleteTokens

func (v *Vault) DeleteTokens(ids ...*token.ID) error

func (*Vault) QueryEngine

func (v *Vault) QueryEngine() driver.QueryEngine

Jump to

Keyboard shortcuts

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