chaincode

package
v0.0.0-...-9de20ef Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEvent

func HandleEvent(channelName, ccName string, event EventHandler)

func Invoke

func Invoke(channelName, ccName, txName, user string, txArgs [][]byte, transientRequest []byte) (*channel.Response, int, error)

func InvokeGateway

func InvokeGateway(channelName, chaincodeName, txName, user string, args []string, transientArgs []byte, endorsingOrgs []string) ([]byte, error)

func Query

func Query(channelName, ccName, txName, user string, txArgs [][]byte) (*channel.Response, int, error)

func QueryGateway

func QueryGateway(channelName, chaincodeName, txName, user string, args []string) ([]byte, error)

func RegisterForEvents

func RegisterForEvents()

func WaitForEvent

func WaitForEvent(channelName, ccName, eventName string, fn func(*fab.CCEvent))

Types

type EventHandler

type EventHandler struct {
	Tag         string
	Label       string
	Type        EventType
	Transaction string
	Channel     string
	Chaincode   string
	BaseLog     string
	ReadOnly    bool
}

func (EventHandler) Execute

func (event EventHandler) Execute(ccEvent *fab.CCEvent)

type EventType

type EventType float64
const (
	EventLog EventType = iota
	EventTransaction
	EventCustom
)

Jump to

Keyboard shortcuts

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