events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepositoryEventHandler

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

func NewDepositoryEventHandler

func NewDepositoryEventHandler(contractClient *contracts.Depository, db *pg.DB) *DepositoryEventHandler

func (*DepositoryEventHandler) HandlePutValue

func (deh *DepositoryEventHandler) HandlePutValue(e *client.ChaincodeEvent) error

HandlePutValue handle events - EventPutValue - EventPutUntrustValue

type Event

type Event string
const (
	DepositoryEventPutValue        Event = "PutValue"
	DepositoryEventPutUntrustValue Event = "PutUntrustValue"
)

type EventHandler

type EventHandler func(event *client.ChaincodeEvent) error

Jump to

Keyboard shortcuts

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