Documentation ¶
Index ¶
Constants ¶
const ( SequencerService_GetSequencerBlock_FullMethodName = "/astria.sequencer.v1.SequencerService/GetSequencerBlock" SequencerService_GetFilteredSequencerBlock_FullMethodName = "/astria.sequencer.v1.SequencerService/GetFilteredSequencerBlock" )
Variables ¶
var SequencerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "astria.sequencer.v1.SequencerService", HandlerType: (*SequencerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSequencerBlock", Handler: _SequencerService_GetSequencerBlock_Handler, }, { MethodName: "GetFilteredSequencerBlock", Handler: _SequencerService_GetFilteredSequencerBlock_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "astria/sequencer/v1/service.proto", }
SequencerService_ServiceDesc is the grpc.ServiceDesc for SequencerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSequencerServiceServer ¶
func RegisterSequencerServiceServer(s grpc.ServiceRegistrar, srv SequencerServiceServer)
Types ¶
type SequencerServiceClient ¶
type SequencerServiceClient interface { // Given a block height, returns the sequencer block at that height. GetSequencerBlock(ctx context.Context, in *v1.GetSequencerBlockRequest, opts ...grpc.CallOption) (*v1.SequencerBlock, error) // Given a block height and set of rollup ids, returns a SequencerBlock which // is filtered to contain only the transactions that are relevant to the given rollup. GetFilteredSequencerBlock(ctx context.Context, in *v1.GetFilteredSequencerBlockRequest, opts ...grpc.CallOption) (*v1.FilteredSequencerBlock, error) }
SequencerServiceClient is the client API for SequencerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSequencerServiceClient ¶
func NewSequencerServiceClient(cc grpc.ClientConnInterface) SequencerServiceClient
type SequencerServiceServer ¶
type SequencerServiceServer interface { // Given a block height, returns the sequencer block at that height. GetSequencerBlock(context.Context, *v1.GetSequencerBlockRequest) (*v1.SequencerBlock, error) // Given a block height and set of rollup ids, returns a SequencerBlock which // is filtered to contain only the transactions that are relevant to the given rollup. GetFilteredSequencerBlock(context.Context, *v1.GetFilteredSequencerBlockRequest) (*v1.FilteredSequencerBlock, error) }
SequencerServiceServer is the server API for SequencerService service. All implementations should embed UnimplementedSequencerServiceServer for forward compatibility
type UnimplementedSequencerServiceServer ¶
type UnimplementedSequencerServiceServer struct { }
UnimplementedSequencerServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSequencerServiceServer) GetFilteredSequencerBlock ¶
func (UnimplementedSequencerServiceServer) GetFilteredSequencerBlock(context.Context, *v1.GetFilteredSequencerBlockRequest) (*v1.FilteredSequencerBlock, error)
func (UnimplementedSequencerServiceServer) GetSequencerBlock ¶
func (UnimplementedSequencerServiceServer) GetSequencerBlock(context.Context, *v1.GetSequencerBlockRequest) (*v1.SequencerBlock, error)
type UnsafeSequencerServiceServer ¶
type UnsafeSequencerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSequencerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SequencerServiceServer will result in compilation errors.