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
Click to show internal directories.
Click to hide internal directories.