controller

package
v0.0.0-...-b3fd81e Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

Controller to run invoke and queries on chaincode

func NewPeerController

func NewPeerController(c context.Context, l *log.Logger, setup FabricSetup) Controller

func NewPeerControllerWithExecutor

func NewPeerControllerWithExecutor(c context.Context, l *log.Logger, setup FabricSetup, exec utils.Executor) Controller

type FabricSetup

type FabricSetup struct {
	ConfigFile  string
	OrgID       string
	OrdererID   string
	OrdererURL  string
	ChannelID   string
	ChainCodeID string

	ChannelConfig   string
	ChaincodeGoPath string
	ChaincodePath   string
	OrgAdmin        string
	OrgName         string
	UserName        string
	// contains filtered or unexported fields
}

FabricSetup implementation

func (*FabricSetup) CloseSDK

func (setup *FabricSetup) CloseSDK()

CloseSDK Closes the SDK

func (*FabricSetup) Initialize

func (setup *FabricSetup) Initialize() error

Initialize reads the configuration file and sets up the client, chain and event hub

func (*FabricSetup) InstallAndInstantiateCC

func (setup *FabricSetup) InstallAndInstantiateCC() error

func (*FabricSetup) InvokeGetBusiness

func (setup *FabricSetup) InvokeGetBusiness(businessID string) (resources.Business, error)

type PeerController

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

func (*PeerController) InvokeGetResource

func (*PeerController) InvokeQuery

Jump to

Keyboard shortcuts

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