biz

package
v0.0.0-...-4fb02c9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockService_ScanBlock_FullMethodName              = "/block.BlockService/ScanBlock"
	BlockService_FoundNewBlock_FullMethodName          = "/block.BlockService/FoundNewBlock"
	BlockService_FoundNewBlockNonStream_FullMethodName = "/block.BlockService/FoundNewBlockNonStream"
	BlockService_GetBlock_FullMethodName               = "/block.BlockService/GetBlock"
	BlockService_ListBlocks_FullMethodName             = "/block.BlockService/ListBlocks"
)

Variables

View Source
var BlockService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "block.BlockService",
	HandlerType: (*BlockServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FoundNewBlockNonStream",
			Handler:    _BlockService_FoundNewBlockNonStream_Handler,
		},
		{
			MethodName: "GetBlock",
			Handler:    _BlockService_GetBlock_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ScanBlock",
			Handler:       _BlockService_ScanBlock_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "FoundNewBlock",
			Handler:       _BlockService_FoundNewBlock_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "ListBlocks",
			Handler:       _BlockService_ListBlocks_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "domain/block/biz/block.proto",
}

BlockService_ServiceDesc is the grpc.ServiceDesc for BlockService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_domain_block_biz_block_proto protoreflect.FileDescriptor

Functions

func RegisterBlockServiceServer

func RegisterBlockServiceServer(s grpc.ServiceRegistrar, srv BlockServiceServer)

Types

type Block

type Block struct {
	model.Block
}

Block is the aggregate root of block domain

func NewBlock

func NewBlock(workchain int32, shard int64, seqno uint32) (*Block, error)

NewBlock is used to create a new block.

type BlockServiceClient

type BlockServiceClient interface {
	ScanBlock(ctx context.Context, in *ScanBlockRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[model.Block], error)
	FoundNewBlock(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[model.Block, model.Block], error)
	FoundNewBlockNonStream(ctx context.Context, in *FoundNewBlockRequest, opts ...grpc.CallOption) (*model.Block, error)
	GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*model.Block, error)
	ListBlocks(ctx context.Context, in *ListBlocksRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[model.Block], error)
}

BlockServiceClient is the client API for BlockService 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.

Service definition for handling blocks.

type BlockServiceServer

BlockServiceServer is the server API for BlockService service. All implementations should embed UnimplementedBlockServiceServer for forward compatibility.

Service definition for handling blocks.

type BlockService_FoundNewBlockClient

type BlockService_FoundNewBlockClient = grpc.BidiStreamingClient[model.Block, model.Block]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type BlockService_FoundNewBlockServer

type BlockService_FoundNewBlockServer = grpc.BidiStreamingServer[model.Block, model.Block]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type BlockService_ListBlocksClient

type BlockService_ListBlocksClient = grpc.ServerStreamingClient[model.Block]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type BlockService_ListBlocksServer

type BlockService_ListBlocksServer = grpc.ServerStreamingServer[model.Block]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type BlockService_ScanBlockClient

type BlockService_ScanBlockClient = grpc.ServerStreamingClient[model.Block]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type BlockService_ScanBlockServer

type BlockService_ScanBlockServer = grpc.ServerStreamingServer[model.Block]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type FoundNewBlockRequest

type FoundNewBlockRequest struct {
	Workchain int32  `protobuf:"varint,1,opt,name=workchain,proto3" json:"workchain,omitempty"`
	Shard     int64  `protobuf:"varint,2,opt,name=shard,proto3" json:"shard,omitempty"`
	SeqNo     uint32 `protobuf:"varint,3,opt,name=seq_no,json=seqNo,proto3" json:"seq_no,omitempty"`
	// contains filtered or unexported fields
}

func (*FoundNewBlockRequest) Descriptor deprecated

func (*FoundNewBlockRequest) Descriptor() ([]byte, []int)

Deprecated: Use FoundNewBlockRequest.ProtoReflect.Descriptor instead.

func (*FoundNewBlockRequest) GetSeqNo

func (x *FoundNewBlockRequest) GetSeqNo() uint32

func (*FoundNewBlockRequest) GetShard

func (x *FoundNewBlockRequest) GetShard() int64

func (*FoundNewBlockRequest) GetWorkchain

func (x *FoundNewBlockRequest) GetWorkchain() int32

func (*FoundNewBlockRequest) ProtoMessage

func (*FoundNewBlockRequest) ProtoMessage()

func (*FoundNewBlockRequest) ProtoReflect

func (x *FoundNewBlockRequest) ProtoReflect() protoreflect.Message

func (*FoundNewBlockRequest) Reset

func (x *FoundNewBlockRequest) Reset()

func (*FoundNewBlockRequest) String

func (x *FoundNewBlockRequest) String() string

type GetBlockRequest

type GetBlockRequest struct {

	// Block ID of the block to get. example: -1:8000000000000000:40337845
	BlockId string `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockRequest) Descriptor deprecated

func (*GetBlockRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.

func (*GetBlockRequest) GetBlockId

func (x *GetBlockRequest) GetBlockId() string

func (*GetBlockRequest) ProtoMessage

func (*GetBlockRequest) ProtoMessage()

func (*GetBlockRequest) ProtoReflect

func (x *GetBlockRequest) ProtoReflect() protoreflect.Message

func (*GetBlockRequest) Reset

func (x *GetBlockRequest) Reset()

func (*GetBlockRequest) String

func (x *GetBlockRequest) String() string

type ListBlocksRequest

type ListBlocksRequest struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBlocksRequest) Descriptor deprecated

func (*ListBlocksRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListBlocksRequest.ProtoReflect.Descriptor instead.

func (*ListBlocksRequest) GetPage

func (x *ListBlocksRequest) GetPage() int64

func (*ListBlocksRequest) GetPageSize

func (x *ListBlocksRequest) GetPageSize() int64

func (*ListBlocksRequest) ProtoMessage

func (*ListBlocksRequest) ProtoMessage()

func (*ListBlocksRequest) ProtoReflect

func (x *ListBlocksRequest) ProtoReflect() protoreflect.Message

func (*ListBlocksRequest) Reset

func (x *ListBlocksRequest) Reset()

func (*ListBlocksRequest) String

func (x *ListBlocksRequest) String() string

type MockBlockServiceClient

type MockBlockServiceClient struct {
	// contains filtered or unexported fields
}

MockBlockServiceClient is a mock of BlockServiceClient interface.

func NewMockBlockServiceClient

func NewMockBlockServiceClient(ctrl *gomock.Controller) *MockBlockServiceClient

NewMockBlockServiceClient creates a new mock instance.

func (*MockBlockServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockServiceClient) FoundNewBlock

FoundNewBlock mocks base method.

func (*MockBlockServiceClient) FoundNewBlockNonStream

func (m *MockBlockServiceClient) FoundNewBlockNonStream(ctx context.Context, in *FoundNewBlockRequest, opts ...grpc.CallOption) (*model.Block, error)

FoundNewBlockNonStream mocks base method.

func (*MockBlockServiceClient) GetBlock

GetBlock mocks base method.

func (*MockBlockServiceClient) ListBlocks

ListBlocks mocks base method.

func (*MockBlockServiceClient) ScanBlock

ScanBlock mocks base method.

type MockBlockServiceClientMockRecorder

type MockBlockServiceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockServiceClientMockRecorder is the mock recorder for MockBlockServiceClient.

func (*MockBlockServiceClientMockRecorder) FoundNewBlock

func (mr *MockBlockServiceClientMockRecorder) FoundNewBlock(ctx interface{}, opts ...interface{}) *gomock.Call

FoundNewBlock indicates an expected call of FoundNewBlock.

func (*MockBlockServiceClientMockRecorder) FoundNewBlockNonStream

func (mr *MockBlockServiceClientMockRecorder) FoundNewBlockNonStream(ctx, in interface{}, opts ...interface{}) *gomock.Call

FoundNewBlockNonStream indicates an expected call of FoundNewBlockNonStream.

func (*MockBlockServiceClientMockRecorder) GetBlock

func (mr *MockBlockServiceClientMockRecorder) GetBlock(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*MockBlockServiceClientMockRecorder) ListBlocks

func (mr *MockBlockServiceClientMockRecorder) ListBlocks(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListBlocks indicates an expected call of ListBlocks.

func (*MockBlockServiceClientMockRecorder) ScanBlock

func (mr *MockBlockServiceClientMockRecorder) ScanBlock(ctx, in interface{}, opts ...interface{}) *gomock.Call

ScanBlock indicates an expected call of ScanBlock.

type MockBlockServiceServer

type MockBlockServiceServer struct {
	// contains filtered or unexported fields
}

MockBlockServiceServer is a mock of BlockServiceServer interface.

func NewMockBlockServiceServer

func NewMockBlockServiceServer(ctrl *gomock.Controller) *MockBlockServiceServer

NewMockBlockServiceServer creates a new mock instance.

func (*MockBlockServiceServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockServiceServer) FoundNewBlock

FoundNewBlock mocks base method.

func (*MockBlockServiceServer) FoundNewBlockNonStream

func (m *MockBlockServiceServer) FoundNewBlockNonStream(ctx context.Context, in *FoundNewBlockRequest) (*model.Block, error)

FoundNewBlockNonStream mocks base method.

func (*MockBlockServiceServer) GetBlock

GetBlock mocks base method.

func (*MockBlockServiceServer) ListBlocks

ListBlocks mocks base method.

func (*MockBlockServiceServer) ScanBlock

ScanBlock mocks base method.

type MockBlockServiceServerMockRecorder

type MockBlockServiceServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockServiceServerMockRecorder is the mock recorder for MockBlockServiceServer.

func (*MockBlockServiceServerMockRecorder) FoundNewBlock

func (mr *MockBlockServiceServerMockRecorder) FoundNewBlock(server interface{}) *gomock.Call

FoundNewBlock indicates an expected call of FoundNewBlock.

func (*MockBlockServiceServerMockRecorder) FoundNewBlockNonStream

func (mr *MockBlockServiceServerMockRecorder) FoundNewBlockNonStream(ctx, in interface{}) *gomock.Call

FoundNewBlockNonStream indicates an expected call of FoundNewBlockNonStream.

func (*MockBlockServiceServerMockRecorder) GetBlock

func (mr *MockBlockServiceServerMockRecorder) GetBlock(ctx, in interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*MockBlockServiceServerMockRecorder) ListBlocks

func (mr *MockBlockServiceServerMockRecorder) ListBlocks(blob, server interface{}) *gomock.Call

ListBlocks indicates an expected call of ListBlocks.

func (*MockBlockServiceServerMockRecorder) ScanBlock

func (mr *MockBlockServiceServerMockRecorder) ScanBlock(blob, server interface{}) *gomock.Call

ScanBlock indicates an expected call of ScanBlock.

type MockBlockService_FoundNewBlockClient

type MockBlockService_FoundNewBlockClient struct {
	// contains filtered or unexported fields
}

MockBlockService_FoundNewBlockClient is a mock of BlockService_FoundNewBlockClient interface.

func NewMockBlockService_FoundNewBlockClient

func NewMockBlockService_FoundNewBlockClient(ctrl *gomock.Controller) *MockBlockService_FoundNewBlockClient

NewMockBlockService_FoundNewBlockClient creates a new mock instance.

func (*MockBlockService_FoundNewBlockClient) CloseSend

CloseSend mocks base method.

func (*MockBlockService_FoundNewBlockClient) Context

Context mocks base method.

func (*MockBlockService_FoundNewBlockClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockService_FoundNewBlockClient) Header

Header mocks base method.

func (*MockBlockService_FoundNewBlockClient) Recv

Recv mocks base method.

func (*MockBlockService_FoundNewBlockClient) RecvMsg

func (m *MockBlockService_FoundNewBlockClient) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method.

func (*MockBlockService_FoundNewBlockClient) Send

Send mocks base method.

func (*MockBlockService_FoundNewBlockClient) SendMsg

func (m *MockBlockService_FoundNewBlockClient) SendMsg(arg0 interface{}) error

SendMsg mocks base method.

func (*MockBlockService_FoundNewBlockClient) Trailer

Trailer mocks base method.

type MockBlockService_FoundNewBlockClientMockRecorder

type MockBlockService_FoundNewBlockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockService_FoundNewBlockClientMockRecorder is the mock recorder for MockBlockService_FoundNewBlockClient.

func (*MockBlockService_FoundNewBlockClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockBlockService_FoundNewBlockClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockBlockService_FoundNewBlockClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockBlockService_FoundNewBlockClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockBlockService_FoundNewBlockClientMockRecorder) RecvMsg

func (mr *MockBlockService_FoundNewBlockClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockBlockService_FoundNewBlockClientMockRecorder) Send

func (mr *MockBlockService_FoundNewBlockClientMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockBlockService_FoundNewBlockClientMockRecorder) SendMsg

func (mr *MockBlockService_FoundNewBlockClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockBlockService_FoundNewBlockClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockBlockService_FoundNewBlockServer

type MockBlockService_FoundNewBlockServer struct {
	// contains filtered or unexported fields
}

MockBlockService_FoundNewBlockServer is a mock of BlockService_FoundNewBlockServer interface.

func NewMockBlockService_FoundNewBlockServer

func NewMockBlockService_FoundNewBlockServer(ctrl *gomock.Controller) *MockBlockService_FoundNewBlockServer

NewMockBlockService_FoundNewBlockServer creates a new mock instance.

func (*MockBlockService_FoundNewBlockServer) Context

Context mocks base method.

func (*MockBlockService_FoundNewBlockServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockService_FoundNewBlockServer) Recv

Recv mocks base method.

func (*MockBlockService_FoundNewBlockServer) RecvMsg

func (m *MockBlockService_FoundNewBlockServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method.

func (*MockBlockService_FoundNewBlockServer) Send

Send mocks base method.

func (*MockBlockService_FoundNewBlockServer) SendHeader

SendHeader mocks base method.

func (*MockBlockService_FoundNewBlockServer) SendMsg

func (m *MockBlockService_FoundNewBlockServer) SendMsg(arg0 interface{}) error

SendMsg mocks base method.

func (*MockBlockService_FoundNewBlockServer) SetHeader

SetHeader mocks base method.

func (*MockBlockService_FoundNewBlockServer) SetTrailer

func (m *MockBlockService_FoundNewBlockServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockBlockService_FoundNewBlockServerMockRecorder

type MockBlockService_FoundNewBlockServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockService_FoundNewBlockServerMockRecorder is the mock recorder for MockBlockService_FoundNewBlockServer.

func (*MockBlockService_FoundNewBlockServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockBlockService_FoundNewBlockServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockBlockService_FoundNewBlockServerMockRecorder) RecvMsg

func (mr *MockBlockService_FoundNewBlockServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockBlockService_FoundNewBlockServerMockRecorder) Send

func (mr *MockBlockService_FoundNewBlockServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockBlockService_FoundNewBlockServerMockRecorder) SendHeader

func (mr *MockBlockService_FoundNewBlockServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockBlockService_FoundNewBlockServerMockRecorder) SendMsg

func (mr *MockBlockService_FoundNewBlockServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockBlockService_FoundNewBlockServerMockRecorder) SetHeader

func (mr *MockBlockService_FoundNewBlockServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockBlockService_FoundNewBlockServerMockRecorder) SetTrailer

func (mr *MockBlockService_FoundNewBlockServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockBlockService_ListBlocksClient

type MockBlockService_ListBlocksClient struct {
	// contains filtered or unexported fields
}

MockBlockService_ListBlocksClient is a mock of BlockService_ListBlocksClient interface.

func NewMockBlockService_ListBlocksClient

func NewMockBlockService_ListBlocksClient(ctrl *gomock.Controller) *MockBlockService_ListBlocksClient

NewMockBlockService_ListBlocksClient creates a new mock instance.

func (*MockBlockService_ListBlocksClient) CloseSend

CloseSend mocks base method.

func (*MockBlockService_ListBlocksClient) Context

Context mocks base method.

func (*MockBlockService_ListBlocksClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockService_ListBlocksClient) Header

Header mocks base method.

func (*MockBlockService_ListBlocksClient) Recv

Recv mocks base method.

func (*MockBlockService_ListBlocksClient) RecvMsg

func (m *MockBlockService_ListBlocksClient) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method.

func (*MockBlockService_ListBlocksClient) SendMsg

func (m *MockBlockService_ListBlocksClient) SendMsg(arg0 interface{}) error

SendMsg mocks base method.

func (*MockBlockService_ListBlocksClient) Trailer

Trailer mocks base method.

type MockBlockService_ListBlocksClientMockRecorder

type MockBlockService_ListBlocksClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockService_ListBlocksClientMockRecorder is the mock recorder for MockBlockService_ListBlocksClient.

func (*MockBlockService_ListBlocksClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockBlockService_ListBlocksClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockBlockService_ListBlocksClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockBlockService_ListBlocksClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockBlockService_ListBlocksClientMockRecorder) RecvMsg

func (mr *MockBlockService_ListBlocksClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockBlockService_ListBlocksClientMockRecorder) SendMsg

func (mr *MockBlockService_ListBlocksClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockBlockService_ListBlocksClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockBlockService_ListBlocksServer

type MockBlockService_ListBlocksServer struct {
	// contains filtered or unexported fields
}

MockBlockService_ListBlocksServer is a mock of BlockService_ListBlocksServer interface.

func NewMockBlockService_ListBlocksServer

func NewMockBlockService_ListBlocksServer(ctrl *gomock.Controller) *MockBlockService_ListBlocksServer

NewMockBlockService_ListBlocksServer creates a new mock instance.

func (*MockBlockService_ListBlocksServer) Context

Context mocks base method.

func (*MockBlockService_ListBlocksServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockService_ListBlocksServer) RecvMsg

func (m *MockBlockService_ListBlocksServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method.

func (*MockBlockService_ListBlocksServer) Send

Send mocks base method.

func (*MockBlockService_ListBlocksServer) SendHeader

func (m *MockBlockService_ListBlocksServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockBlockService_ListBlocksServer) SendMsg

func (m *MockBlockService_ListBlocksServer) SendMsg(arg0 interface{}) error

SendMsg mocks base method.

func (*MockBlockService_ListBlocksServer) SetHeader

SetHeader mocks base method.

func (*MockBlockService_ListBlocksServer) SetTrailer

func (m *MockBlockService_ListBlocksServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockBlockService_ListBlocksServerMockRecorder

type MockBlockService_ListBlocksServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockService_ListBlocksServerMockRecorder is the mock recorder for MockBlockService_ListBlocksServer.

func (*MockBlockService_ListBlocksServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockBlockService_ListBlocksServerMockRecorder) RecvMsg

func (mr *MockBlockService_ListBlocksServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockBlockService_ListBlocksServerMockRecorder) Send

func (mr *MockBlockService_ListBlocksServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockBlockService_ListBlocksServerMockRecorder) SendHeader

func (mr *MockBlockService_ListBlocksServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockBlockService_ListBlocksServerMockRecorder) SendMsg

func (mr *MockBlockService_ListBlocksServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockBlockService_ListBlocksServerMockRecorder) SetHeader

func (mr *MockBlockService_ListBlocksServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockBlockService_ListBlocksServerMockRecorder) SetTrailer

func (mr *MockBlockService_ListBlocksServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockBlockService_ScanBlockClient

type MockBlockService_ScanBlockClient struct {
	// contains filtered or unexported fields
}

MockBlockService_ScanBlockClient is a mock of BlockService_ScanBlockClient interface.

func NewMockBlockService_ScanBlockClient

func NewMockBlockService_ScanBlockClient(ctrl *gomock.Controller) *MockBlockService_ScanBlockClient

NewMockBlockService_ScanBlockClient creates a new mock instance.

func (*MockBlockService_ScanBlockClient) CloseSend

func (m *MockBlockService_ScanBlockClient) CloseSend() error

CloseSend mocks base method.

func (*MockBlockService_ScanBlockClient) Context

Context mocks base method.

func (*MockBlockService_ScanBlockClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockService_ScanBlockClient) Header

Header mocks base method.

func (*MockBlockService_ScanBlockClient) Recv

Recv mocks base method.

func (*MockBlockService_ScanBlockClient) RecvMsg

func (m *MockBlockService_ScanBlockClient) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method.

func (*MockBlockService_ScanBlockClient) SendMsg

func (m *MockBlockService_ScanBlockClient) SendMsg(arg0 interface{}) error

SendMsg mocks base method.

func (*MockBlockService_ScanBlockClient) Trailer

Trailer mocks base method.

type MockBlockService_ScanBlockClientMockRecorder

type MockBlockService_ScanBlockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockService_ScanBlockClientMockRecorder is the mock recorder for MockBlockService_ScanBlockClient.

func (*MockBlockService_ScanBlockClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockBlockService_ScanBlockClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockBlockService_ScanBlockClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockBlockService_ScanBlockClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockBlockService_ScanBlockClientMockRecorder) RecvMsg

func (mr *MockBlockService_ScanBlockClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockBlockService_ScanBlockClientMockRecorder) SendMsg

func (mr *MockBlockService_ScanBlockClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockBlockService_ScanBlockClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockBlockService_ScanBlockServer

type MockBlockService_ScanBlockServer struct {
	// contains filtered or unexported fields
}

MockBlockService_ScanBlockServer is a mock of BlockService_ScanBlockServer interface.

func NewMockBlockService_ScanBlockServer

func NewMockBlockService_ScanBlockServer(ctrl *gomock.Controller) *MockBlockService_ScanBlockServer

NewMockBlockService_ScanBlockServer creates a new mock instance.

func (*MockBlockService_ScanBlockServer) Context

Context mocks base method.

func (*MockBlockService_ScanBlockServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockService_ScanBlockServer) RecvMsg

func (m *MockBlockService_ScanBlockServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method.

func (*MockBlockService_ScanBlockServer) Send

Send mocks base method.

func (*MockBlockService_ScanBlockServer) SendHeader

func (m *MockBlockService_ScanBlockServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockBlockService_ScanBlockServer) SendMsg

func (m *MockBlockService_ScanBlockServer) SendMsg(arg0 interface{}) error

SendMsg mocks base method.

func (*MockBlockService_ScanBlockServer) SetHeader

SetHeader mocks base method.

func (*MockBlockService_ScanBlockServer) SetTrailer

func (m *MockBlockService_ScanBlockServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockBlockService_ScanBlockServerMockRecorder

type MockBlockService_ScanBlockServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockService_ScanBlockServerMockRecorder is the mock recorder for MockBlockService_ScanBlockServer.

func (*MockBlockService_ScanBlockServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockBlockService_ScanBlockServerMockRecorder) RecvMsg

func (mr *MockBlockService_ScanBlockServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockBlockService_ScanBlockServerMockRecorder) Send

func (mr *MockBlockService_ScanBlockServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockBlockService_ScanBlockServerMockRecorder) SendHeader

func (mr *MockBlockService_ScanBlockServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockBlockService_ScanBlockServerMockRecorder) SendMsg

func (mr *MockBlockService_ScanBlockServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockBlockService_ScanBlockServerMockRecorder) SetHeader

func (mr *MockBlockService_ScanBlockServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockBlockService_ScanBlockServerMockRecorder) SetTrailer

func (mr *MockBlockService_ScanBlockServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type ScanBlockRequest

type ScanBlockRequest struct {

	// Starting height of the range of blocks to scan.
	StartHeight uint32 `protobuf:"varint,1,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	// Ending height of the range of blocks to scan.
	EndHeight uint32 `protobuf:"varint,2,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"`
	Workchain *int32 `protobuf:"varint,3,opt,name=workchain,proto3,oneof" json:"workchain,omitempty"`
	// contains filtered or unexported fields
}

Request message for scanning blocks.

func (*ScanBlockRequest) Descriptor deprecated

func (*ScanBlockRequest) Descriptor() ([]byte, []int)

Deprecated: Use ScanBlockRequest.ProtoReflect.Descriptor instead.

func (*ScanBlockRequest) GetEndHeight

func (x *ScanBlockRequest) GetEndHeight() uint32

func (*ScanBlockRequest) GetStartHeight

func (x *ScanBlockRequest) GetStartHeight() uint32

func (*ScanBlockRequest) GetWorkchain

func (x *ScanBlockRequest) GetWorkchain() int32

func (*ScanBlockRequest) ProtoMessage

func (*ScanBlockRequest) ProtoMessage()

func (*ScanBlockRequest) ProtoReflect

func (x *ScanBlockRequest) ProtoReflect() protoreflect.Message

func (*ScanBlockRequest) Reset

func (x *ScanBlockRequest) Reset()

func (*ScanBlockRequest) String

func (x *ScanBlockRequest) String() string

type UnimplementedBlockServiceServer

type UnimplementedBlockServiceServer struct{}

UnimplementedBlockServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedBlockServiceServer) FoundNewBlock

func (UnimplementedBlockServiceServer) FoundNewBlockNonStream

func (UnimplementedBlockServiceServer) GetBlock

func (UnimplementedBlockServiceServer) ListBlocks

func (UnimplementedBlockServiceServer) ScanBlock

type UnsafeBlockServiceServer

type UnsafeBlockServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBlockServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlockServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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