hyperledger

package
v0.0.0-...-1cffbeb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTrans

func GetTrans(key string) string

func StartFabric

func StartFabric()

func WriteTrans

func WriteTrans(key string, value string) string

Types

type Block

type Block struct {
	Trans []_Transaction
	// contains filtered or unexported fields
}

BLOCK

type Fabric

type Fabric struct {
	MSP_org1     string
	MSP_peer1    string
	MSP_peer2    string
	MSP_peer3    string
	MSP_orderer1 string
	MSP_orderer2 string
	// contains filtered or unexported fields
}

================================== FABRIC =================================//

func (*Fabric) ReadTransaction

func (fab *Fabric) ReadTransaction(key string, auth string) string

func (*Fabric) SendToOrderer

func (fab *Fabric) SendToOrderer(rwset RWSet)

func (*Fabric) Start

func (fab *Fabric) Start()

func (*Fabric) WriteTransaction

func (fab *Fabric) WriteTransaction(key string, value string, auth string) (RWSet, RWSet)

type FabricCA

type FabricCA struct {
}

type Kafka

type Kafka struct {
	Channel []RWSet
}

func (*Kafka) Pull

func (o *Kafka) Pull() []RWSet

func (*Kafka) Push

func (o *Kafka) Push(rwset RWSet)

type Ledger

type Ledger struct {
	Blockchain []_Block
	*LevelDB
	// contains filtered or unexported fields
}

type LevelDB

type LevelDB struct {
	// contains filtered or unexported fields
}

type MSP

type MSP struct {
	// contains filtered or unexported fields
}

================================== Fabric-CA & MSP =================================// MSP

type Orderer

type Orderer struct {
	// contains filtered or unexported fields
}

ORDERER

func (*Orderer) Start

func (o *Orderer) Start()

type Peer

type Peer struct {
	// contains filtered or unexported fields
}

PEER

func (*Peer) Start

func (p *Peer) Start()

type RWSet

type RWSet struct {
	// contains filtered or unexported fields
}

RWSEt

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

TRANACTION

Jump to

Keyboard shortcuts

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