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.ClientConn) 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) // Heartbeat Ping(ctx context.Context, in *pb.PingRequest, opts ...grpc.CallOption) (*pb.PingResponse, 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) }
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.ClientConn) SyscallClient
type SyscallServer ¶
type SyscallServer interface { // KV service PutObject(context.Context, *pb.PutRequest) (*pb.PutResponse, error) GetObject(context.Context, *pb.GetRequest) (*pb.GetResponse, error) DeleteObject(context.Context, *pb.DeleteRequest) (*pb.DeleteResponse, error) NewIterator(context.Context, *pb.IteratorRequest) (*pb.IteratorResponse, error) // Chain service QueryTx(context.Context, *pb.QueryTxRequest) (*pb.QueryTxResponse, error) QueryBlock(context.Context, *pb.QueryBlockRequest) (*pb.QueryBlockResponse, error) Transfer(context.Context, *pb.TransferRequest) (*pb.TransferResponse, error) ContractCall(context.Context, *pb.ContractCallRequest) (*pb.ContractCallResponse, error) // Heartbeat Ping(context.Context, *pb.PingRequest) (*pb.PingResponse, error) GetCallArgs(context.Context, *pb.GetCallArgsRequest) (*pb.CallArgs, error) SetOutput(context.Context, *pb.SetOutputRequest) (*pb.SetOutputResponse, error) }
SyscallServer is the server API for Syscall service.
Click to show internal directories.
Click to hide internal directories.