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 = "Stratumn 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/sdk/fossilizer.Adapter.
func (*DummyFossilizer) AddResultChan ¶
func (a *DummyFossilizer) AddResultChan(resultChan chan *fossilizer.Result)
AddResultChan implements github.com/stratumn/sdk/fossilizer.Adapter.AddResultChan.
func (*DummyFossilizer) Fossilize ¶
func (a *DummyFossilizer) Fossilize(data []byte, meta []byte) error
Fossilize implements github.com/stratumn/sdk/fossilizer.Adapter.Fossilize.
func (*DummyFossilizer) GetInfo ¶
func (a *DummyFossilizer) GetInfo() (interface{}, error)
GetInfo implements github.com/stratumn/sdk/fossilizer.Adapter.GetInfo.
Click to show internal directories.
Click to hide internal directories.