github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/services/v1/services.go (about) 1 package v1 2 3 import ( 4 "context" 5 6 v1 "github.com/authzed/authzed-go/proto/authzed/api/v1" 7 8 servicesv1 "github.com/authzed/spicedb/internal/services/v1" 9 "github.com/authzed/spicedb/pkg/datastore" 10 ) 11 12 // BulkExport implements the BulkExportRelationships API functionality. Given a datastore.Datastore, it will 13 // export stream via the sender all relationships matched by the incoming request. 14 // If no cursor is provided, it will fallback to the provided revision. 15 func BulkExport(ctx context.Context, ds datastore.Datastore, batchSize uint64, req *v1.BulkExportRelationshipsRequest, fallbackRevision datastore.Revision, sender func(response *v1.BulkExportRelationshipsResponse) error) error { 16 return servicesv1.BulkExport(ctx, ds, batchSize, req, fallbackRevision, sender) 17 }