block

package
v0.0.0-...-dfdcac0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2016 License: Apache-2.0 Imports: 11 Imported by: 2

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)

Jump to

Keyboard shortcuts

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