MCPcopy Create free account

hub / github.com/accretional/collector / functions

Functions726 in github.com/accretional/collector

↓ 5 callersFunctionSetOperationState
SetOperationState sets the operation state in collection metadata.
pkg/collection/operation_state.go:66
↓ 5 callersFunctionWithBootstrap
WithBootstrap allows skipping validation during bootstrap
pkg/collection/collection.go:28
↓ 5 callersFunctionverifyDBExists
Helper function to verify database file exists
pkg/bootstrap/system_collections_test.go:320
↓ 4 callersFunctionClearOperationState
ClearOperationState removes the operation state from collection metadata.
pkg/collection/operation_state.go:84
↓ 4 callersMethodClone
Clone creates a consistent copy of the collection at destPath
pkg/collection/transport.go:16
↓ 4 callersFunctionCloneCollectionFiles
CloneCollectionFiles copies filesystem data from source to destination.
pkg/collection/transport.go:258
↓ 4 callersMethodCreateRecord
--- Store Delegates ---
pkg/collection/collection.go:72
↓ 4 callersMethodGetBackup
GetBackup retrieves backup metadata by ID.
pkg/collection/backup.go:141
↓ 4 callersFunctionIsOperationTimedOut
IsOperationTimedOut checks if an operation has exceeded its timeout.
pkg/collection/operation_state.go:91
↓ 4 callersMethodListBackups
ListBackups lists backups with optional filters.
pkg/collection/backup.go:199
↓ 4 callersMethodListProtos
ListProtos returns all registered protos, optionally filtered by namespace
pkg/registry/registry.go:475
↓ 4 callersMethodMeta
(ctx context.Context, req *pb.MetaRequest)
pkg/collection/collection_server.go:349
↓ 4 callersFunctionNewDispatcherWithRegistry
NewDispatcherWithRegistry creates a new dispatcher instance with registry validation
pkg/dispatch/dispatcher.go:55
↓ 4 callersFunctionNewGrpcServer
NewGrpcServer creates a new instance of our gRPC server.
pkg/collection/grpc_server.go:23
↓ 4 callersFunctionNewRegistryServer
(registeredProtos, registeredServices *collection.Collection)
pkg/registry/registry.go:31
↓ 4 callersMethodRead
(p []byte)
pkg/collection/fetch.go:139
↓ 4 callersFunctionRegisterCollectionRepoService
RegisterCollectionRepoService registers the CollectionRepo service with the registry
pkg/registry/integration_example.go:154
↓ 4 callersFunctionRegisterCollectionService
Helper functions to register services with the registry RegisterCollectionService registers the CollectionService with the registry
pkg/registry/integration_example.go:110
↓ 4 callersFunctionRegisterDispatcherService
RegisterDispatcherService registers the CollectiveDispatcher service with the registry
pkg/registry/integration_example.go:136
↓ 4 callersMethodUpdateCollectionMetadata
(ctx context.Context, namespace, name string, meta *pb.Collection)
pkg/collection/interfaces.go:27
↓ 4 callersMethodValidateCollectionMessageType
ValidateCollectionMessageType validates that a collection's message type is registered
pkg/collection/type_validator.go:13
↓ 4 callersFunctionValidateName
ValidateName validates a namespace or collection name. Returns an error if the name is invalid.
pkg/collection/validation.go:31
↓ 4 callersMethodVerifyBackup
VerifyBackup verifies a backup's integrity.
pkg/collection/backup.go:894
↓ 4 callersMethodaddFilters
()
pkg/db/sqlite/store.go:719
↓ 4 callersMethodaddPagination
(vectorSearch bool)
pkg/db/sqlite/store.go:747
↓ 4 callersMethodbuildWhere
()
pkg/db/sqlite/store.go:729
↓ 4 callersFunctioncheckStringValue
checkStringValue checks a string value against WAF rules
pkg/security/interceptor.go:131
↓ 4 callersMethodexecuteSearchQuery
(ctx context.Context, query string, args []interface{}, hasVector, hasFTS bool)
pkg/db/sqlite/store.go:817
↓ 4 callersMethodfromClause
(clause string)
pkg/db/sqlite/store.go:699
↓ 4 callersMethodgetPersistedConnection
getPersistedConnection retrieves a connection record from the collection.
pkg/dispatch/connection_manager.go:547
↓ 4 callersMethodlog
(level logging.Level, msg string, args ...any)
pkg/collection/system_logger.go:76
↓ 4 callersMethodorderBy
(defaultOrder, customOrderFmt string)
pkg/db/sqlite/store.go:735
↓ 4 callersMethodregisterCollection
registerCollection adds a collection to the collection registry
pkg/bootstrap/system_collections.go:481
↓ 4 callersMethodselectFields
(fields string)
pkg/db/sqlite/store.go:695
↓ 4 callersMethodupdatePersistedConnection
updatePersistedConnection updates an existing connection record.
pkg/dispatch/connection_manager.go:506
↓ 3 callersMethodBackupFilesPathMicro
BackupFilesPathMicro generates a backup files directory path using microsecond precision. Format: {DataDir}/.backup/{namespace}/{collectionname}-{time
pkg/collection/paths.go:110
↓ 3 callersMethodCheckpoint
Maintenance
pkg/collection/repo.go:33
↓ 3 callersMethodCloneLocal
CloneLocal clones a collection within the same collector.
pkg/collection/clone.go:40
↓ 3 callersMethodContext
()
pkg/registry/interceptor_test.go:236
↓ 3 callersMethodDisconnect
Disconnect closes a connection and updates the persisted record.
pkg/dispatch/connection_manager.go:295
↓ 3 callersMethodFetchRemote
FetchRemote fetches a collection from a remote collector using streaming.
pkg/collection/clone.go:308
↓ 3 callersMethodList
(ctx context.Context, req *pb.ListRequest)
pkg/collection/collection_server.go:138
↓ 3 callersMethodListBackups
ListBackups lists available backups.
pkg/collection/backup.go:562
↓ 3 callersMethodLoad
(ctx context.Context, path string)
pkg/collection/local_fs.go:29
↓ 3 callersMethodLookupProto
LookupProto retrieves a registered proto by namespace and file name
pkg/registry/registry.go:328
↓ 3 callersFunctionNewFileSystem
NewFileSystem creates a new local filesystem rooted at the given path.
pkg/fs/local/filesystem.go:18
↓ 3 callersMethodPack
Pack prepares a collection for transport (returns a reader for the data)
pkg/collection/transport.go:19
↓ 3 callersMethodPath
Path returns the physical location of the store (useful for transport/backup).
pkg/collection/repo.go:18
↓ 3 callersMethodRegisterMessageType
RegisterMessageType registers a message type from a FileDescriptor This should be called when RegisterProto is called in the registry
pkg/bootstrap/type_registry.go:35
↓ 3 callersMethodRegisterService
(namespace, serviceName, methodName string)
pkg/dispatch/dispatcher_registry_test.go:23
↓ 3 callersMethodSave
(ctx context.Context, path string, content []byte)
pkg/collection/local_fs.go:25
↓ 3 callersMethodSave
(ctx context.Context, path string, content []byte)
pkg/collection/interfaces.go:12
↓ 3 callersMethodUnpack
Unpack receives collection data and creates a new collection
pkg/collection/transport.go:22
↓ 3 callersMethoddeleteVecEntry
(ctx context.Context, tx execContext, id string)
pkg/db/sqlite/store.go:933
↓ 3 callersMethodreuseOrGenerateVector
(ctx context.Context, id string, jsonText string)
pkg/db/sqlite/store.go:945
↓ 3 callersMethodupsertVecTable
Vector helper methods
pkg/db/sqlite/store.go:908
↓ 2 callersMethodAddress
Address returns the full address the server is listening on.
pkg/server/server.go:455
↓ 2 callersMethodCloseAll
CloseAll closes all active connections.
pkg/dispatch/connection_manager.go:444
↓ 2 callersMethodCountRecords
(ctx context.Context)
pkg/collection/collection.go:130
↓ 2 callersMethodDelete
(ctx context.Context, path string)
pkg/collection/local_fs.go:33
↓ 2 callersMethodDelete
(ctx context.Context, req *pb.DeleteRequest)
pkg/collection/collection_server.go:126
↓ 2 callersMethodDelete
(ctx context.Context, path string)
pkg/collection/interfaces.go:14
↓ 2 callersMethodDeleteBackup
DeleteBackup deletes a backup.
pkg/collection/backup.go:840
↓ 2 callersMethodDescribe
(ctx context.Context, req *pb.DescribeRequest)
pkg/collection/collection_server.go:298
↓ 2 callersMethodExecuteRaw
ExecuteRaw allows lower-level operations required for advanced features like backup (VACUUM INTO) or combination (ATTACH DATABASE).
pkg/collection/repo.go:42
↓ 2 callersMethodExists
(ctx context.Context, path string)
pkg/collection/local_fs.go:45
↓ 2 callersMethodGetClient
GetClient returns a client for the given address.
pkg/dispatch/connection_manager.go:373
↓ 2 callersMethodList
(ctx context.Context, prefix string)
pkg/collection/local_fs.go:37
↓ 2 callersMethodListCollections
(ctx context.Context, namespace string)
pkg/collection/registry_store.go:21
↓ 2 callersMethodListMessageTypes
ListMessageTypes returns all registered message types, optionally filtered by namespace
pkg/bootstrap/type_registry.go:240
↓ 2 callersFunctionNew
New creates a new Collector server with the given configuration.
pkg/server/server.go:83
↓ 2 callersFunctionNewCloneManager
NewCloneManager creates a new CloneManager.
pkg/collection/clone.go:30
↓ 2 callersFunctionNewCollectionRegistryStore
NewCollectionRegistryStore creates a new registry store backed by a collection.
pkg/collection/collection_registry_store.go:19
↓ 2 callersFunctionNewCollectionRepoService
NewCollectionRepoService creates a new service instance.
pkg/collection/service.go:23
↓ 2 callersFunctionNewDeterministicEmbedder
(dim int, seed uint32)
pkg/collection/deterministic_embedder.go:17
↓ 2 callersFunctionNewMockValidator
()
pkg/dispatch/dispatcher_registry_test.go:17
↓ 2 callersFunctionNewRegistryValidator
NewRegistryValidator creates a validator from a RegistryServer
pkg/registry/helpers.go:41
↓ 2 callersFunctionNewTypeRegistry
NewTypeRegistry creates a new TypeRegistry wrapping the system/types collection
pkg/bootstrap/type_registry.go:26
↓ 2 callersFunctionNewWAFInterceptor
NewWAFInterceptor creates an interceptor that blocks requests containing specific substrings. This is a demonstration interceptor for testing/validati
pkg/security/interceptor.go:31
↓ 2 callersMethodRecordRequest
RecordRequest increments the request count and updates activity for a connection.
pkg/dispatch/connection_manager.go:349
↓ 2 callersMethodRecoverFromRestart
RecoverFromRestart marks connections from previous sessions as STALE. This should be called on startup before accepting new connections.
pkg/dispatch/connection_manager.go:65
↓ 2 callersMethodRegisterFileDescriptor
(ctx context.Context, namespace string, fileDesc *descriptorpb.FileDescriptorProto)
pkg/registry/registry.go:20
↓ 2 callersMethodSave
Save writes content to a file at the given path.
pkg/fs/local/filesystem.go:65
↓ 2 callersMethodSaveCollection
(ctx context.Context, collection *pb.Collection, dbPath string)
pkg/collection/registry_store.go:19
↓ 2 callersMethodSearch
(ctx context.Context, req *pb.SearchRequest)
pkg/collection/collection_server.go:178
↓ 2 callersMethodSetTypeValidator
SetTypeValidator sets the message type validator for this repo. This is optional - if not set, type validation is skipped.
pkg/collection/repo.go:79
↓ 2 callersFunctionSetupCollectionServiceWithValidation
Example: How to set up a CollectionService server with registry validation SetupCollectionServiceWithValidation demonstrates how to create a Collectio
pkg/registry/integration_example.go:18
↓ 2 callersMethodShutdown
Shutdown closes all connections
pkg/dispatch/dispatcher.go:345
↓ 2 callersMethodShutdown
Shutdown gracefully shuts down the server.
pkg/server/server.go:396
↓ 2 callersMethodStreamValidationInterceptor
StreamValidationInterceptor creates a gRPC stream interceptor that validates incoming RPCs against the registry.
pkg/registry/interceptor.go:56
↓ 2 callersMethodUpdate
(ctx context.Context, req *pb.UpdateRequest)
pkg/collection/collection_server.go:108
↓ 2 callersMethodValidateMessageType
ValidateMessageType checks if a message type is registered
pkg/bootstrap/type_registry.go:181
↓ 2 callersMethodValidateService
ValidateService checks if a service is registered in the given namespace
pkg/registry/registry.go:415
↓ 2 callersMethodValidationInterceptor
ValidationInterceptor creates a gRPC unary interceptor that validates incoming RPCs against the registry. It checks if the service and method are regi
pkg/registry/interceptor.go:16
↓ 2 callersMethodWaitForShutdown
WaitForShutdown blocks until a shutdown signal is received (SIGINT, SIGTERM).
pkg/server/server.go:384
↓ 2 callersMethodWarn
(msg string, args ...any)
pkg/logging/logger.go:32
↓ 2 callersMethodaddSimilarityThreshold
()
pkg/db/sqlite/store.go:711
↓ 2 callersFunctionbuildTypeUrl
buildTypeUrl builds a type URL from a collection's message type
pkg/collection/collection_server.go:77
↓ 2 callersMethodcleanupOldBackups
cleanupOldBackups enforces retention policy for a collection's backups. This runs synchronously while the backup operation is still active, preventing
pkg/collection/backup.go:991
↓ 2 callersMethoddeleteBackupUnlocked
deleteBackupUnlocked is the internal version that doesn't acquire the lock. Used by cleanup operations that already hold the lock.
pkg/collection/backup.go:849
← previousnext →101–200 of 726, ranked by callers