bcbatchfossilizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bcbatchfossilizer implements a fossilizer that fossilize batches of hashes on a blockchain.

Index

Constants

View Source
const (
	// Name is the name set in the fossilizer's information.
	Name = "bcbatch"

	// Description is the description set in the fossilizer's information.
	Description = "Indigo's Blockchain Batch Fossilizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HashTimestamper blockchain.HashTimestamper
}

Config contains configuration options for the fossilizer.

type Fossilizer

type Fossilizer struct {
	*batchfossilizer.Fossilizer
	// contains filtered or unexported fields
}

Fossilizer is the type that implements github.com/stratumn/sdk/fossilizer.Adapter.

func New

func New(config *Config, batchConfig *batchfossilizer.Config) (*Fossilizer, error)

New creates an instance of a Fossilizer.

func (*Fossilizer) GetInfo

func (a *Fossilizer) GetInfo() (interface{}, error)

GetInfo implements github.com/stratumn/sdk/fossilizer.Adapter.GetInfo.

type Info

type Info struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Version     string `json:"version"`
	Commit      string `json:"commit"`
	Blockchain  string `json:"blockchain"`
}

Info is the info returned by GetInfo.

Jump to

Keyboard shortcuts

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