Documentation ¶
Overview ¶
Package dummyfossilizer implements a fossilizer that can be used for testing.
It doesn't do much -- it just adds a timestamp.
Index ¶
Constants ¶
View Source
const ( // Name is the name set in the fossilizer's information. Name = "dummy" // Description is the description set in the fossilizer's information. Description = "Indigo's Dummy Fossilizer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // A version string that will be set in the store's information. Version string // A git commit hash that will be set in the store's information. Commit string }
Config contains configuration options for the store.
type DummyFossilizer ¶
type DummyFossilizer struct {
// contains filtered or unexported fields
}
DummyFossilizer is the type that implements github.com/stratumn/go-indigocore/fossilizer.Adapter.
func (*DummyFossilizer) AddFossilizerEventChan ¶ added in v0.2.0
func (a *DummyFossilizer) AddFossilizerEventChan(fossilizerEventChan chan *fossilizer.Event)
AddFossilizerEventChan implements github.com/stratumn/go-indigocore/fossilizer.Adapter.AddFossilizerEventChan.
type DummyProof ¶ added in v0.2.0
type DummyProof struct {
Timestamp uint64 `json:"timestamp"`
}
DummyProof implements the cs.Proof interface
func (*DummyProof) FullProof ¶ added in v0.2.0
func (p *DummyProof) FullProof() []byte
FullProof returns a JSON formatted proof
func (*DummyProof) Time ¶ added in v0.2.0
func (p *DummyProof) Time() uint64
Time returns the timestamp from the block header
func (*DummyProof) Verify ¶ added in v0.2.0
func (p *DummyProof) Verify(interface{}) bool
Verify returns true if the proof of a given linkHash is correct
Click to show internal directories.
Click to hide internal directories.