pbrpc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNativeCodeServer

func RegisterNativeCodeServer(s *grpc.Server, srv NativeCodeServer)

func RegisterSyscallServer

func RegisterSyscallServer(s *grpc.Server, srv SyscallServer)

Types

type NativeCodeClient

type NativeCodeClient interface {
	Call(ctx context.Context, in *pb.NativeCallRequest, opts ...grpc.CallOption) (*pb.NativeCallResponse, error)
	Ping(ctx context.Context, in *pb.PingRequest, opts ...grpc.CallOption) (*pb.PingResponse, error)
}

NativeCodeClient is the client API for NativeCode service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNativeCodeClient

func NewNativeCodeClient(cc grpc.ClientConnInterface) NativeCodeClient

type NativeCodeServer

type NativeCodeServer interface {
	Call(context.Context, *pb.NativeCallRequest) (*pb.NativeCallResponse, error)
	Ping(context.Context, *pb.PingRequest) (*pb.PingResponse, error)
}

NativeCodeServer is the server API for NativeCode service.

type SyscallClient

type SyscallClient interface {
	// KV service
	PutObject(ctx context.Context, in *pb.PutRequest, opts ...grpc.CallOption) (*pb.PutResponse, error)
	GetObject(ctx context.Context, in *pb.GetRequest, opts ...grpc.CallOption) (*pb.GetResponse, error)
	DeleteObject(ctx context.Context, in *pb.DeleteRequest, opts ...grpc.CallOption) (*pb.DeleteResponse, error)
	NewIterator(ctx context.Context, in *pb.IteratorRequest, opts ...grpc.CallOption) (*pb.IteratorResponse, error)
	// Chain service
	QueryTx(ctx context.Context, in *pb.QueryTxRequest, opts ...grpc.CallOption) (*pb.QueryTxResponse, error)
	QueryBlock(ctx context.Context, in *pb.QueryBlockRequest, opts ...grpc.CallOption) (*pb.QueryBlockResponse, error)
	Transfer(ctx context.Context, in *pb.TransferRequest, opts ...grpc.CallOption) (*pb.TransferResponse, error)
	ContractCall(ctx context.Context, in *pb.ContractCallRequest, opts ...grpc.CallOption) (*pb.ContractCallResponse, error)
	CrossContractQuery(ctx context.Context, in *pb.CrossContractQueryRequest, opts ...grpc.CallOption) (*pb.CrossContractQueryResponse, error)
	GetAccountAddresses(ctx context.Context, in *pb.GetAccountAddressesRequest, opts ...grpc.CallOption) (*pb.GetAccountAddressesResponse, error)
	// Heartbeat
	Ping(ctx context.Context, in *pb.PingRequest, opts ...grpc.CallOption) (*pb.PingResponse, error)
	// Post log
	PostLog(ctx context.Context, in *pb.PostLogRequest, opts ...grpc.CallOption) (*pb.PostLogResponse, error)
	GetCallArgs(ctx context.Context, in *pb.GetCallArgsRequest, opts ...grpc.CallOption) (*pb.CallArgs, error)
	SetOutput(ctx context.Context, in *pb.SetOutputRequest, opts ...grpc.CallOption) (*pb.SetOutputResponse, error)
	// Send Event
	EmitEvent(ctx context.Context, in *pb.EmitEventRequest, opts ...grpc.CallOption) (*pb.EmitEventResponse, error)
}

SyscallClient is the client API for Syscall service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSyscallClient

func NewSyscallClient(cc grpc.ClientConnInterface) SyscallClient

type UnimplementedNativeCodeServer

type UnimplementedNativeCodeServer struct {
}

UnimplementedNativeCodeServer can be embedded to have forward compatible implementations.

func (*UnimplementedNativeCodeServer) Call

func (*UnimplementedNativeCodeServer) Ping

type UnimplementedSyscallServer

type UnimplementedSyscallServer struct {
}

UnimplementedSyscallServer can be embedded to have forward compatible implementations.

func (*UnimplementedSyscallServer) ContractCall

func (*UnimplementedSyscallServer) CrossContractQuery

func (*UnimplementedSyscallServer) DeleteObject

func (*UnimplementedSyscallServer) EmitEvent

func (*UnimplementedSyscallServer) GetAccountAddresses

func (*UnimplementedSyscallServer) GetCallArgs

func (*UnimplementedSyscallServer) GetObject

func (*UnimplementedSyscallServer) NewIterator

func (*UnimplementedSyscallServer) Ping

func (*UnimplementedSyscallServer) PostLog

func (*UnimplementedSyscallServer) PutObject

func (*UnimplementedSyscallServer) QueryBlock

func (*UnimplementedSyscallServer) QueryTx

func (*UnimplementedSyscallServer) SetOutput

func (*UnimplementedSyscallServer) Transfer

Jump to

Keyboard shortcuts

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