pconfig

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgs          = errors.New("pstorage: invalid arguments")
	ErrNotExists            = errors.New("pstorage: not exists")
	ErrExists               = errors.New("pstorage: exists")
	ErrAccountNotExists     = fmt.Errorf("%w: account", ErrNotExists)
	ErrAccountExists        = fmt.Errorf("%w: account", ErrExists)
	ErrCertificateNotExists = fmt.Errorf("%w: certificate", ErrNotExists)
	ErrCertificateExists    = fmt.Errorf("%w: certificate", ErrExists)
)

Functions

This section is empty.

Types

type BidEngine added in v0.10.4

type BidEngine interface {
	SetOrdersNextKey(context.Context, []byte) error
	GetOrdersNextKey(context.Context) ([]byte, error)
}

type Storage

type Storage interface {
	StorageR
	StorageW
	BidEngine() BidEngine
	Close() error
}

type StorageR

type StorageR interface {
	GetAccountPublicKey(context.Context, sdk.Address) (cryptotypes.PubKey, error)
	GetAccountCertificate(context.Context, sdk.Address, *big.Int) (*x509.Certificate, crypto.PublicKey, error)
	GetAllCertificates(context.Context) ([]*x509.Certificate, error)
}

type StorageW

type StorageW interface {
	AddAccount(context.Context, sdk.Address, cryptotypes.PubKey) error
	DelAccount(context.Context, sdk.Address) error
	AddAccountCertificate(context.Context, sdk.Address, *x509.Certificate, crypto.PublicKey) error
	DelAccountCertificate(context.Context, sdk.Address, *big.Int) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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