Discover Packages
github.com/yu-org/yu
core
tripod
dev
package
Version:
v1.2.19
Opens a new window with list of versions in this module.
Published: Dec 25, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
P2pHandler is a p2p server handler. You can define the services in P2P server.
Just like TCP handler.
type Reading func(ctx *ReadContext)
Reading Developers define the 'Reading' in the pod to let clients query the blockchain.
This operation has no consensus reached in the blockchain network.
respObj is a json object
type Writing func(ctx *WriteContext) error
Writing Developers define the 'Writing' in the pod to let clients call.
Just like transactions in ETH
Source Files
¶
Click to show internal directories.
Click to hide internal directories.