// GetTranslateData provides a reader for key translation logs starting at offset.
GetTranslateData provides a reader for key translation logs starting at offset.
// GetTranslateData provides a reader for key translation logs starting at offset .
func (api *API) GetTranslateData(ctx context.Context, offset int64) (io.ReadCloser, error) {
	span, ctx := tracing.StartSpanFromContext(ctx, "API.GetTranslateData")
	defer span.Finish()
	rc, err := api.holder.translateFile.Reader(ctx, offset)
	if err != nil {
		return nil, errors.Wrap(err, "read from translate store")
	}
	go func() { <-ctx.Done(); rc.Close() }()
	return rc, nil
}
func ( api * API ) GetTranslateData ( ctx context . Context , offset int64 ) ( io . ReadCloser , error ) { span , ctx := tracing . StartSpanFromContext ( ctx , " " ) defer span . Finish ( ) rc , err := api . holder . translateFile . Reader ( ctx , offset ) if err != nil { return nil , errors . Wrap ( err , " " ) } go func ( ) { <- ctx . Done ( ) ; rc . Close ( ) } ( ) return rc , nil }
GetTranslateData provides a reader for key translation logs starting at offset.
GetTranslateData provides a reader for key translation logs starting at offset .
// Ensure reader is closed when the client disconnects.