Documentation ¶
Overview ¶
Package dummytimestamper implements a fake blockchain timestamper which can be used for testing.
Index ¶
Constants ¶
View Source
const Component = "dummytimestamper"
Component name for monitoring.
View Source
const Description = "Dummy Timestamper"
Description describes this Timestamper
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timestamper ¶
type Timestamper struct{}
Timestamper is the type that implements github.com/stratumn/go-core/blockchain.Timestamper.
func (Timestamper) GetInfo ¶
func (t Timestamper) GetInfo() *blockchain.Info
GetInfo implements github.com/stratumn/go-core/blockchain.HashTimestamper.
func (Timestamper) Network ¶
func (Timestamper) Network() blockchain.Network
Network implements fmt.Stringer.
func (Timestamper) Timestamp ¶
func (Timestamper) Timestamp(_ context.Context, data interface{}) (types.TransactionID, error)
Timestamp implements github.com/stratumn/go-core/blockchain.Timestamper.
func (Timestamper) TimestampHash ¶
func (Timestamper) TimestampHash(_ context.Context, hash []byte) (types.TransactionID, error)
TimestampHash implements github.com/stratumn/go-core/blockchain.HashTimestamper.
Click to show internal directories.
Click to hide internal directories.