db

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSignedBlock

type MockSignedBlock struct {
	Payload []byte
	Num     uint64
	Prev    common.BlockID
}

func (*MockSignedBlock) Data

func (msb *MockSignedBlock) Data() string

func (*MockSignedBlock) GetSignee

func (msb *MockSignedBlock) GetSignee() (interface{}, error)

func (*MockSignedBlock) Id

func (msb *MockSignedBlock) Id() common.BlockID

func (*MockSignedBlock) Marshall

func (msb *MockSignedBlock) Marshall() ([]byte, error)

func (*MockSignedBlock) Previous

func (msb *MockSignedBlock) Previous() common.BlockID

func (*MockSignedBlock) Set

func (msb *MockSignedBlock) Set(data string, num uint64, prev common.BlockID)

func (*MockSignedBlock) Timestamp

func (msb *MockSignedBlock) Timestamp() uint64

func (*MockSignedBlock) Unmarshall

func (msb *MockSignedBlock) Unmarshall(b []byte) error

Jump to

Keyboard shortcuts

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