github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/topic/topicwriterinternal/writer_stream_interface.go (about) 1 package topicwriterinternal 2 3 import ( 4 "context" 5 ) 6 7 //go:generate mockgen -source writer_stream_interface.go -destination writer_stream_interface_mock_test.go -package topicwriterinternal -write_package_comment=false 8 type StreamWriter interface { 9 Write(ctx context.Context, messages []PublicMessage) error 10 WaitInit(ctx context.Context) (info InitialInfo, err error) 11 Close(ctx context.Context) error 12 } 13 14 type InitialInfo struct { 15 LastSeqNum int64 16 }