sync

package
v0.9.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher added in v0.9.18

type Dispatcher interface {
	DispatchMsgSync(ctx context.Context, res http.ResponseWriter, req *http.Request, msg interface{})
	QueryChaincode(res http.ResponseWriter, req *http.Request, params httprouter.Params)
	GetTxByID(res http.ResponseWriter, req *http.Request, params httprouter.Params)
	GetChainInfo(res http.ResponseWriter, req *http.Request, params httprouter.Params)
	GetBlock(res http.ResponseWriter, req *http.Request, params httprouter.Params)
	GetBlockByTxID(res http.ResponseWriter, req *http.Request, params httprouter.Params)
}

Dispatcher abstracts the processing of the transactions and queries synchronously. We perform those within this package.

func NewDispatcher added in v0.9.18

func NewDispatcher(processor tx.Processor) Dispatcher

Jump to

Keyboard shortcuts

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