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
- type Config
- type DummyFossilizer
- func (a *DummyFossilizer) AddFossilizerEventChan(fossilizerEventChan chan *fossilizer.Event)
- func (a *DummyFossilizer) Fossilize(ctx context.Context, data []byte, meta []byte) error
- func (a *DummyFossilizer) GetInfo(ctx context.Context) (interface{}, error)
- func (a *DummyFossilizer) ListenersCount() int
- type Info
Constants ¶
View Source
const (
// Description is the description set in the fossilizer's information.
Description = "Stratumn'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-core/fossilizer.Adapter.
func (*DummyFossilizer) AddFossilizerEventChan ¶ added in v0.2.0
func (a *DummyFossilizer) AddFossilizerEventChan(fossilizerEventChan chan *fossilizer.Event)
AddFossilizerEventChan implements github.com/stratumn/go-core/fossilizer.Adapter.AddFossilizerEventChan.
func (*DummyFossilizer) Fossilize ¶
Fossilize implements github.com/stratumn/go-core/fossilizer.Adapter.Fossilize.
func (*DummyFossilizer) GetInfo ¶
func (a *DummyFossilizer) GetInfo(ctx context.Context) (interface{}, error)
GetInfo implements github.com/stratumn/go-core/fossilizer.Adapter.GetInfo.
func (*DummyFossilizer) ListenersCount ¶ added in v0.3.1
func (a *DummyFossilizer) ListenersCount() int
ListenersCount returns the number of registered listeners.
Click to show internal directories.
Click to hide internal directories.