pebble

package
v0.0.0-...-888f0f9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the database client

func New

func New(cfg *koanf.Koanf) (*Client, error)

New returns a new database client

func (*Client) GetLedgerGenesis

func (c *Client) GetLedgerGenesis(ctx context.Context) ([]byte, io.Closer, error)

func (*Client) GetLedgerGenesisB64

func (c *Client) GetLedgerGenesisB64() string

func (*Client) GetLedgerLastBlock

func (c *Client) GetLedgerLastBlock() uint64

func (*Client) GetLedgerStateDelta

func (c *Client) GetLedgerStateDelta(ctx context.Context, round uint64) ([]byte, io.Closer, error)

func (*Client) PutLedgerBlockData

func (c *Client) PutLedgerBlockData(context context.Context, round uint64, bData []byte) error

func (*Client) PutLedgerGenesis

func (c *Client) PutLedgerGenesis(context context.Context, gData []byte) error

func (*Client) WaitLedgerBlock

func (c *Client) WaitLedgerBlock(ctx context.Context, round uint64) (uint64, error)

Jump to

Keyboard shortcuts

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