Documentation ¶
Index ¶
- func RegisterNativeCodeServer(s *grpc.Server, srv NativeCodeServer)
- func RegisterSyscallServer(s *grpc.Server, srv SyscallServer)
- type NativeCodeClient
- type NativeCodeServer
- type SyscallClient
- type SyscallServer
- type UnimplementedNativeCodeServer
- type UnimplementedSyscallServer
- func (*UnimplementedSyscallServer) ContractCall(ctx context.Context, req *pb.ContractCallRequest) (*pb.ContractCallResponse, error)
- func (*UnimplementedSyscallServer) CrossContractQuery(ctx context.Context, req *pb.CrossContractQueryRequest) (*pb.CrossContractQueryResponse, error)
- func (*UnimplementedSyscallServer) DeleteObject(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error)
- func (*UnimplementedSyscallServer) EmitEvent(ctx context.Context, req *pb.EmitEventRequest) (*pb.EmitEventResponse, error)
- func (*UnimplementedSyscallServer) GetAccountAddresses(ctx context.Context, req *pb.GetAccountAddressesRequest) (*pb.GetAccountAddressesResponse, error)
- func (*UnimplementedSyscallServer) GetCallArgs(ctx context.Context, req *pb.GetCallArgsRequest) (*pb.CallArgs, error)
- func (*UnimplementedSyscallServer) GetObject(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)
- func (*UnimplementedSyscallServer) NewIterator(ctx context.Context, req *pb.IteratorRequest) (*pb.IteratorResponse, error)
- func (*UnimplementedSyscallServer) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error)
- func (*UnimplementedSyscallServer) PostLog(ctx context.Context, req *pb.PostLogRequest) (*pb.PostLogResponse, error)
- func (*UnimplementedSyscallServer) PutObject(ctx context.Context, req *pb.PutRequest) (*pb.PutResponse, error)
- func (*UnimplementedSyscallServer) QueryBlock(ctx context.Context, req *pb.QueryBlockRequest) (*pb.QueryBlockResponse, error)
- func (*UnimplementedSyscallServer) QueryTx(ctx context.Context, req *pb.QueryTxRequest) (*pb.QueryTxResponse, error)
- func (*UnimplementedSyscallServer) SetOutput(ctx context.Context, req *pb.SetOutputRequest) (*pb.SetOutputResponse, error)
- func (*UnimplementedSyscallServer) Transfer(ctx context.Context, req *pb.TransferRequest) (*pb.TransferResponse, error)
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 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) CrossContractQuery(context.Context, *pb.CrossContractQueryRequest) (*pb.CrossContractQueryResponse, error) GetAccountAddresses(context.Context, *pb.GetAccountAddressesRequest) (*pb.GetAccountAddressesResponse, error) // Heartbeat Ping(context.Context, *pb.PingRequest) (*pb.PingResponse, error) // Post log PostLog(context.Context, *pb.PostLogRequest) (*pb.PostLogResponse, error) GetCallArgs(context.Context, *pb.GetCallArgsRequest) (*pb.CallArgs, error) SetOutput(context.Context, *pb.SetOutputRequest) (*pb.SetOutputResponse, error) // Send Event EmitEvent(context.Context, *pb.EmitEventRequest) (*pb.EmitEventResponse, error) }
SyscallServer is the server API for Syscall service.
type UnimplementedNativeCodeServer ¶
type UnimplementedNativeCodeServer struct { }
UnimplementedNativeCodeServer can be embedded to have forward compatible implementations.
func (*UnimplementedNativeCodeServer) Call ¶
func (*UnimplementedNativeCodeServer) Call(ctx context.Context, req *pb.NativeCallRequest) (*pb.NativeCallResponse, error)
func (*UnimplementedNativeCodeServer) Ping ¶
func (*UnimplementedNativeCodeServer) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error)
type UnimplementedSyscallServer ¶
type UnimplementedSyscallServer struct { }
UnimplementedSyscallServer can be embedded to have forward compatible implementations.
func (*UnimplementedSyscallServer) ContractCall ¶
func (*UnimplementedSyscallServer) ContractCall(ctx context.Context, req *pb.ContractCallRequest) (*pb.ContractCallResponse, error)
func (*UnimplementedSyscallServer) CrossContractQuery ¶
func (*UnimplementedSyscallServer) CrossContractQuery(ctx context.Context, req *pb.CrossContractQueryRequest) (*pb.CrossContractQueryResponse, error)
func (*UnimplementedSyscallServer) DeleteObject ¶
func (*UnimplementedSyscallServer) DeleteObject(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error)
func (*UnimplementedSyscallServer) EmitEvent ¶
func (*UnimplementedSyscallServer) EmitEvent(ctx context.Context, req *pb.EmitEventRequest) (*pb.EmitEventResponse, error)
func (*UnimplementedSyscallServer) GetAccountAddresses ¶
func (*UnimplementedSyscallServer) GetAccountAddresses(ctx context.Context, req *pb.GetAccountAddressesRequest) (*pb.GetAccountAddressesResponse, error)
func (*UnimplementedSyscallServer) GetCallArgs ¶
func (*UnimplementedSyscallServer) GetCallArgs(ctx context.Context, req *pb.GetCallArgsRequest) (*pb.CallArgs, error)
func (*UnimplementedSyscallServer) GetObject ¶
func (*UnimplementedSyscallServer) GetObject(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)
func (*UnimplementedSyscallServer) NewIterator ¶
func (*UnimplementedSyscallServer) NewIterator(ctx context.Context, req *pb.IteratorRequest) (*pb.IteratorResponse, error)
func (*UnimplementedSyscallServer) Ping ¶
func (*UnimplementedSyscallServer) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error)
func (*UnimplementedSyscallServer) PostLog ¶
func (*UnimplementedSyscallServer) PostLog(ctx context.Context, req *pb.PostLogRequest) (*pb.PostLogResponse, error)
func (*UnimplementedSyscallServer) PutObject ¶
func (*UnimplementedSyscallServer) PutObject(ctx context.Context, req *pb.PutRequest) (*pb.PutResponse, error)
func (*UnimplementedSyscallServer) QueryBlock ¶
func (*UnimplementedSyscallServer) QueryBlock(ctx context.Context, req *pb.QueryBlockRequest) (*pb.QueryBlockResponse, error)
func (*UnimplementedSyscallServer) QueryTx ¶
func (*UnimplementedSyscallServer) QueryTx(ctx context.Context, req *pb.QueryTxRequest) (*pb.QueryTxResponse, error)
func (*UnimplementedSyscallServer) SetOutput ¶
func (*UnimplementedSyscallServer) SetOutput(ctx context.Context, req *pb.SetOutputRequest) (*pb.SetOutputResponse, error)
func (*UnimplementedSyscallServer) Transfer ¶
func (*UnimplementedSyscallServer) Transfer(ctx context.Context, req *pb.TransferRequest) (*pb.TransferResponse, error)