blocks

package
v0.0.0-...-dc1a0b8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Multihash mh.Multihash
	Data      []byte
}

func NewBlock

func NewBlock(data []byte) (*Block, error)

func (*Block) Key

func (b *Block) Key() u.Key

type BlockService

type BlockService struct {
	Datastore ds.Datastore
}

func NewBlockService

func NewBlockService(d ds.Datastore) (*BlockService, error)

func (*BlockService) AddBlock

func (s *BlockService) AddBlock(b *Block) (u.Key, error)

func (*BlockService) GetBlock

func (s *BlockService) GetBlock(k u.Key) (*Block, error)

Jump to

Keyboard shortcuts

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