github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/topic/topicreaderinternal/batched_stream_reader_interface.go (about)

     1  package topicreaderinternal
     2  
     3  import (
     4  	"context"
     5  )
     6  
     7  //go:generate mockgen -source batched_stream_reader_interface.go -destination batched_stream_reader_mock_test.go -package topicreaderinternal -write_package_comment=false
     8  
     9  type batchedStreamReader interface {
    10  	WaitInit(ctx context.Context) error
    11  	ReadMessageBatch(ctx context.Context, opts ReadMessageBatchOptions) (*PublicBatch, error)
    12  	Commit(ctx context.Context, commitRange commitRange) error
    13  	CloseWithError(ctx context.Context, err error) error
    14  }