blockchainSDK

package
v0.0.0-...-a41d785 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetupSDK

type SetupSDK struct {
	ConfigFile  string
	OrgID       string
	OrdererID   string
	ChannelID   string
	ChainCodeID string

	ChannelConfig   string
	ChaincodeGoPath string
	ChaincodePath   string
	OrgAdmin        string
	OrgName         string
	UserName        string

	MgmtIdentity msp.SigningIdentity
	// contains filtered or unexported fields
}

FabricSetup implementation

func (*SetupSDK) AdminSetup

func (s *SetupSDK) AdminSetup() error

func (*SetupSDK) ChainCodeInstallationInstantiation

func (s *SetupSDK) ChainCodeInstallationInstantiation() error

installs and instantiates chaincode

func (*SetupSDK) ChannelSetup

func (s *SetupSDK) ChannelSetup() error

func (*SetupSDK) ClientSetup

func (s *SetupSDK) ClientSetup() error

setup client and setupt access to channel events

func (*SetupSDK) CloseSDK

func (s *SetupSDK) CloseSDK()

func (*SetupSDK) DeleteEntrySDK

func (s *SetupSDK) DeleteEntrySDK(ID string) (string, error)

delete entry on chaincode using SDK

func (*SetupSDK) InitEntrySDK

func (s *SetupSDK) InitEntrySDK(ID string, Hash string, Application string, NodeIP string, Owner string, Updated string) (string, error)

add entry using SDK

func (*SetupSDK) Initialization

func (s *SetupSDK) Initialization() error

Initialization setups new sdk

func (*SetupSDK) ReadEntrySDK

func (s *SetupSDK) ReadEntrySDK(ID string) (string, error)

read entry on chaincode using SDK

func (*SetupSDK) SearchByOwnerSDK

func (s *SetupSDK) SearchByOwnerSDK(Owner string) (string, error)

search by username on chaincode using SDK

Jump to

Keyboard shortcuts

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