dev

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcWrRd

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

func NewGrpcWrRd

func NewGrpcWrRd(targetAddr, tripodName, funcName string) *GrpcWrRd

func (*GrpcWrRd) Write

func (rpc *GrpcWrRd) Write(ctx *WriteContext) error

type P2pHandler

type P2pHandler func([]byte) ([]byte, error)

P2pHandler is a p2p server handler. You can define the services in P2P server. Just like TCP handler.

type Reading

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

type Writing func(ctx *WriteContext) error

Writing Developers define the 'Writing' in the pod to let clients call. Just like transactions in ETH

Jump to

Keyboard shortcuts

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