dummytimestamper

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dummytimestamper implements a fake blockchain timestamper which can be used for testing.

Index

Constants

View Source
const Description = "Dummy Timestamper"

Description describes this Timestamper

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct{}

Network is the identifier of the dummy network.

func (Network) String

func (Network) String() string

Timestamper is the type that implements fmt.Stringer.

type Timestamper

type Timestamper struct{}

Timestamper is the type that implements github.com/stratumn/go-indigocore/blockchain.Timestamper.

func (Timestamper) GetInfo

func (t Timestamper) GetInfo() *blockchain.Info

GetInfo implements github.com/stratumn/go-indigocore/blockchain.HashTimestamper.

func (Timestamper) Network

func (Timestamper) Network() blockchain.Network

Network implements fmt.Stringer.

func (Timestamper) Timestamp

func (Timestamper) Timestamp(data interface{}) (types.TransactionID, error)

Timestamp implements github.com/stratumn/go-indigocore/blockchain.Timestamper.

func (Timestamper) TimestampHash

func (Timestamper) TimestampHash(hash *types.Bytes32) (types.TransactionID, error)

TimestampHash implements github.com/stratumn/go-indigocore/blockchain.HashTimestamper.

Jump to

Keyboard shortcuts

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