mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
183 lines
7 KiB
Go
183 lines
7 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.3.0
|
|
// - protoc (unknown)
|
|
// source: astria/execution/v1/execution.proto
|
|
|
|
package executionv1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
const (
|
|
ExecutionService_InitState_FullMethodName = "/astria.execution.v1.ExecutionService/InitState"
|
|
ExecutionService_DoBlock_FullMethodName = "/astria.execution.v1.ExecutionService/DoBlock"
|
|
ExecutionService_FinalizeBlock_FullMethodName = "/astria.execution.v1.ExecutionService/FinalizeBlock"
|
|
)
|
|
|
|
// ExecutionServiceClient is the client API for ExecutionService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type ExecutionServiceClient interface {
|
|
InitState(ctx context.Context, in *InitStateRequest, opts ...grpc.CallOption) (*InitStateResponse, error)
|
|
DoBlock(ctx context.Context, in *DoBlockRequest, opts ...grpc.CallOption) (*DoBlockResponse, error)
|
|
FinalizeBlock(ctx context.Context, in *FinalizeBlockRequest, opts ...grpc.CallOption) (*FinalizeBlockResponse, error)
|
|
}
|
|
|
|
type executionServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewExecutionServiceClient(cc grpc.ClientConnInterface) ExecutionServiceClient {
|
|
return &executionServiceClient{cc}
|
|
}
|
|
|
|
func (c *executionServiceClient) InitState(ctx context.Context, in *InitStateRequest, opts ...grpc.CallOption) (*InitStateResponse, error) {
|
|
out := new(InitStateResponse)
|
|
err := c.cc.Invoke(ctx, ExecutionService_InitState_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *executionServiceClient) DoBlock(ctx context.Context, in *DoBlockRequest, opts ...grpc.CallOption) (*DoBlockResponse, error) {
|
|
out := new(DoBlockResponse)
|
|
err := c.cc.Invoke(ctx, ExecutionService_DoBlock_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *executionServiceClient) FinalizeBlock(ctx context.Context, in *FinalizeBlockRequest, opts ...grpc.CallOption) (*FinalizeBlockResponse, error) {
|
|
out := new(FinalizeBlockResponse)
|
|
err := c.cc.Invoke(ctx, ExecutionService_FinalizeBlock_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ExecutionServiceServer is the server API for ExecutionService service.
|
|
// All implementations must embed UnimplementedExecutionServiceServer
|
|
// for forward compatibility
|
|
type ExecutionServiceServer interface {
|
|
InitState(context.Context, *InitStateRequest) (*InitStateResponse, error)
|
|
DoBlock(context.Context, *DoBlockRequest) (*DoBlockResponse, error)
|
|
FinalizeBlock(context.Context, *FinalizeBlockRequest) (*FinalizeBlockResponse, error)
|
|
mustEmbedUnimplementedExecutionServiceServer()
|
|
}
|
|
|
|
// UnimplementedExecutionServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedExecutionServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedExecutionServiceServer) InitState(context.Context, *InitStateRequest) (*InitStateResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InitState not implemented")
|
|
}
|
|
func (UnimplementedExecutionServiceServer) DoBlock(context.Context, *DoBlockRequest) (*DoBlockResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DoBlock not implemented")
|
|
}
|
|
func (UnimplementedExecutionServiceServer) FinalizeBlock(context.Context, *FinalizeBlockRequest) (*FinalizeBlockResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method FinalizeBlock not implemented")
|
|
}
|
|
func (UnimplementedExecutionServiceServer) mustEmbedUnimplementedExecutionServiceServer() {}
|
|
|
|
// UnsafeExecutionServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to ExecutionServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeExecutionServiceServer interface {
|
|
mustEmbedUnimplementedExecutionServiceServer()
|
|
}
|
|
|
|
func RegisterExecutionServiceServer(s grpc.ServiceRegistrar, srv ExecutionServiceServer) {
|
|
s.RegisterService(&ExecutionService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _ExecutionService_InitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitStateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ExecutionServiceServer).InitState(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ExecutionService_InitState_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ExecutionServiceServer).InitState(ctx, req.(*InitStateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ExecutionService_DoBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DoBlockRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ExecutionServiceServer).DoBlock(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ExecutionService_DoBlock_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ExecutionServiceServer).DoBlock(ctx, req.(*DoBlockRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ExecutionService_FinalizeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(FinalizeBlockRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ExecutionServiceServer).FinalizeBlock(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ExecutionService_FinalizeBlock_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ExecutionServiceServer).FinalizeBlock(ctx, req.(*FinalizeBlockRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// ExecutionService_ServiceDesc is the grpc.ServiceDesc for ExecutionService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var ExecutionService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "astria.execution.v1.ExecutionService",
|
|
HandlerType: (*ExecutionServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "InitState",
|
|
Handler: _ExecutionService_InitState_Handler,
|
|
},
|
|
{
|
|
MethodName: "DoBlock",
|
|
Handler: _ExecutionService_DoBlock_Handler,
|
|
},
|
|
{
|
|
MethodName: "FinalizeBlock",
|
|
Handler: _ExecutionService_FinalizeBlock_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "astria/execution/v1/execution.proto",
|
|
}
|