transformation

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PrimaryKey = "_fabric_id"
	DateKey    = "_fabric_date"
	TxIDKey    = "_fabric_txid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	TXDate      int
	TXID        string
	BlockNumber int
	ChannelID   string
	Data        map[string]interface{}
	ChaincodeID string
	PrimaryKey  string
}

type DocumentExtractionResponse

type DocumentExtractionResponse struct {
	DocumentsToAdd    map[string]*Document
	DocumentsToRemove map[string]*Document
}

func BlockToDocuments

func BlockToDocuments(block *cb.Block) (*DocumentExtractionResponse, error)

func BlocksToDocuments

func BlocksToDocuments(blocks []*cb.Block) (*DocumentExtractionResponse, error)

Jump to

Keyboard shortcuts

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