Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore

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

func NewBlockStore

func NewBlockStore() *BlockStore

func (*BlockStore) GetBlock

func (b *BlockStore) GetBlock(block *tofu.Block, stream tofu.BlockStore_GetBlockServer) error

func (*BlockStore) ListBlocks

func (b *BlockStore) ListBlocks(emptyValue *tofu.EmptyValue, stream tofu.BlockStore_ListBlocksServer) error

func (*BlockStore) PutBlock

func (b *BlockStore) PutBlock(stream tofu.BlockStore_PutBlockServer) error

func (*BlockStore) Run

func (b *BlockStore) Run()

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Close

func (t *Client) Close()

func (*Client) GetBlock

func (t *Client) GetBlock(hash string) ([]byte, error)

func (*Client) ListBlocks

func (t *Client) ListBlocks() []*tofu.Block

func (*Client) PutBlock

func (t *Client) PutBlock(b []byte) (*tofu.Block, error)