Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const ChainsTable + const CustKeysLogTable + const CustKeysTable + const IssuerCertsTable + const LeafCertsTable + const Path + const Schema + const SchemaVersion + const TRCsTable + type Backend struct + func New(path string) (*Backend, error) + func (db *Backend) BeginTransaction(ctx context.Context, opts *sql.TxOptions) (trustdb.Transaction, error) + func (db *Backend) Close() error + func (db *Backend) SetMaxIdleConns(maxIdleConns int) + func (db *Backend) SetMaxOpenConns(maxOpenConns int) + func (e Backend) GetAllChains(ctx context.Context) (<-chan trustdb.ChainOrErr, error) + func (e Backend) GetAllCustKeys(ctx context.Context) (<-chan trustdb.CustKeyOrErr, error) + func (e Backend) GetAllIssCerts(ctx context.Context) (<-chan trustdb.CertOrErr, error) + func (e Backend) GetAllTRCs(ctx context.Context) (<-chan trustdb.TrcOrErr, error) + func (e Backend) GetChainMaxVersion(ctx context.Context, ia addr.IA) (*cert.Chain, error) + func (e Backend) GetChainVersion(ctx context.Context, ia addr.IA, version scrypto.Version) (*cert.Chain, error) + func (e Backend) GetCustKey(ctx context.Context, ia addr.IA) (*trustdb.CustKey, error) + func (e Backend) GetIssCertMaxVersion(ctx context.Context, ia addr.IA) (*cert.Certificate, error) + func (e Backend) GetIssCertVersion(ctx context.Context, ia addr.IA, version scrypto.Version) (*cert.Certificate, error) + func (e Backend) GetLeafCertMaxVersion(ctx context.Context, ia addr.IA) (*cert.Certificate, error) + func (e Backend) GetLeafCertVersion(ctx context.Context, ia addr.IA, version scrypto.Version) (*cert.Certificate, error) + func (e Backend) GetTRCMaxVersion(ctx context.Context, isd addr.ISD) (*trc.TRC, error) + func (e Backend) GetTRCVersion(ctx context.Context, isd addr.ISD, version scrypto.Version) (*trc.TRC, error) + func (e Backend) InsertChain(ctx context.Context, chain *cert.Chain) (int64, error) + func (e Backend) InsertCustKey(ctx context.Context, key *trustdb.CustKey, oldVersion scrypto.Version) error + func (e Backend) InsertIssCert(ctx context.Context, crt *cert.Certificate) (int64, error) + func (e Backend) InsertLeafCert(ctx context.Context, crt *cert.Certificate) (int64, error) + func (e Backend) InsertTRC(ctx context.Context, trcobj *trc.TRC) (int64, error)