Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/accretional/collector
/ functions
Functions
726 in github.com/accretional/collector
⨍
Functions
726
◇
Types & classes
79
↓ 5 callers
Function
SetOperationState
SetOperationState sets the operation state in collection metadata.
pkg/collection/operation_state.go:66
↓ 5 callers
Function
WithBootstrap
WithBootstrap allows skipping validation during bootstrap
pkg/collection/collection.go:28
↓ 5 callers
Function
verifyDBExists
Helper function to verify database file exists
pkg/bootstrap/system_collections_test.go:320
↓ 4 callers
Function
ClearOperationState
ClearOperationState removes the operation state from collection metadata.
pkg/collection/operation_state.go:84
↓ 4 callers
Method
Clone
Clone creates a consistent copy of the collection at destPath
pkg/collection/transport.go:16
↓ 4 callers
Function
CloneCollectionFiles
CloneCollectionFiles copies filesystem data from source to destination.
pkg/collection/transport.go:258
↓ 4 callers
Method
CreateRecord
--- Store Delegates ---
pkg/collection/collection.go:72
↓ 4 callers
Method
GetBackup
GetBackup retrieves backup metadata by ID.
pkg/collection/backup.go:141
↓ 4 callers
Function
IsOperationTimedOut
IsOperationTimedOut checks if an operation has exceeded its timeout.
pkg/collection/operation_state.go:91
↓ 4 callers
Method
ListBackups
ListBackups lists backups with optional filters.
pkg/collection/backup.go:199
↓ 4 callers
Method
ListProtos
ListProtos returns all registered protos, optionally filtered by namespace
pkg/registry/registry.go:475
↓ 4 callers
Method
Meta
(ctx context.Context, req *pb.MetaRequest)
pkg/collection/collection_server.go:349
↓ 4 callers
Function
NewDispatcherWithRegistry
NewDispatcherWithRegistry creates a new dispatcher instance with registry validation
pkg/dispatch/dispatcher.go:55
↓ 4 callers
Function
NewGrpcServer
NewGrpcServer creates a new instance of our gRPC server.
pkg/collection/grpc_server.go:23
↓ 4 callers
Function
NewRegistryServer
(registeredProtos, registeredServices *collection.Collection)
pkg/registry/registry.go:31
↓ 4 callers
Method
Read
(p []byte)
pkg/collection/fetch.go:139
↓ 4 callers
Function
RegisterCollectionRepoService
RegisterCollectionRepoService registers the CollectionRepo service with the registry
pkg/registry/integration_example.go:154
↓ 4 callers
Function
RegisterCollectionService
Helper functions to register services with the registry RegisterCollectionService registers the CollectionService with the registry
pkg/registry/integration_example.go:110
↓ 4 callers
Function
RegisterDispatcherService
RegisterDispatcherService registers the CollectiveDispatcher service with the registry
pkg/registry/integration_example.go:136
↓ 4 callers
Method
UpdateCollectionMetadata
(ctx context.Context, namespace, name string, meta *pb.Collection)
pkg/collection/interfaces.go:27
↓ 4 callers
Method
ValidateCollectionMessageType
ValidateCollectionMessageType validates that a collection's message type is registered
pkg/collection/type_validator.go:13
↓ 4 callers
Function
ValidateName
ValidateName validates a namespace or collection name. Returns an error if the name is invalid.
pkg/collection/validation.go:31
↓ 4 callers
Method
VerifyBackup
VerifyBackup verifies a backup's integrity.
pkg/collection/backup.go:894
↓ 4 callers
Method
addFilters
()
pkg/db/sqlite/store.go:719
↓ 4 callers
Method
addPagination
(vectorSearch bool)
pkg/db/sqlite/store.go:747
↓ 4 callers
Method
buildWhere
()
pkg/db/sqlite/store.go:729
↓ 4 callers
Function
checkStringValue
checkStringValue checks a string value against WAF rules
pkg/security/interceptor.go:131
↓ 4 callers
Method
executeSearchQuery
(ctx context.Context, query string, args []interface{}, hasVector, hasFTS bool)
pkg/db/sqlite/store.go:817
↓ 4 callers
Method
fromClause
(clause string)
pkg/db/sqlite/store.go:699
↓ 4 callers
Method
getPersistedConnection
getPersistedConnection retrieves a connection record from the collection.
pkg/dispatch/connection_manager.go:547
↓ 4 callers
Method
log
(level logging.Level, msg string, args ...any)
pkg/collection/system_logger.go:76
↓ 4 callers
Method
orderBy
(defaultOrder, customOrderFmt string)
pkg/db/sqlite/store.go:735
↓ 4 callers
Method
registerCollection
registerCollection adds a collection to the collection registry
pkg/bootstrap/system_collections.go:481
↓ 4 callers
Method
selectFields
(fields string)
pkg/db/sqlite/store.go:695
↓ 4 callers
Method
updatePersistedConnection
updatePersistedConnection updates an existing connection record.
pkg/dispatch/connection_manager.go:506
↓ 3 callers
Method
BackupFilesPathMicro
BackupFilesPathMicro generates a backup files directory path using microsecond precision. Format: {DataDir}/.backup/{namespace}/{collectionname}-{time
pkg/collection/paths.go:110
↓ 3 callers
Method
Checkpoint
Maintenance
pkg/collection/repo.go:33
↓ 3 callers
Method
CloneLocal
CloneLocal clones a collection within the same collector.
pkg/collection/clone.go:40
↓ 3 callers
Method
Context
()
pkg/registry/interceptor_test.go:236
↓ 3 callers
Method
Disconnect
Disconnect closes a connection and updates the persisted record.
pkg/dispatch/connection_manager.go:295
↓ 3 callers
Method
FetchRemote
FetchRemote fetches a collection from a remote collector using streaming.
pkg/collection/clone.go:308
↓ 3 callers
Method
List
(ctx context.Context, req *pb.ListRequest)
pkg/collection/collection_server.go:138
↓ 3 callers
Method
ListBackups
ListBackups lists available backups.
pkg/collection/backup.go:562
↓ 3 callers
Method
Load
(ctx context.Context, path string)
pkg/collection/local_fs.go:29
↓ 3 callers
Method
LookupProto
LookupProto retrieves a registered proto by namespace and file name
pkg/registry/registry.go:328
↓ 3 callers
Function
NewFileSystem
NewFileSystem creates a new local filesystem rooted at the given path.
pkg/fs/local/filesystem.go:18
↓ 3 callers
Method
Pack
Pack prepares a collection for transport (returns a reader for the data)
pkg/collection/transport.go:19
↓ 3 callers
Method
Path
Path returns the physical location of the store (useful for transport/backup).
pkg/collection/repo.go:18
↓ 3 callers
Method
RegisterMessageType
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 callers
Method
RegisterService
(namespace, serviceName, methodName string)
pkg/dispatch/dispatcher_registry_test.go:23
↓ 3 callers
Method
Save
(ctx context.Context, path string, content []byte)
pkg/collection/local_fs.go:25
↓ 3 callers
Method
Save
(ctx context.Context, path string, content []byte)
pkg/collection/interfaces.go:12
↓ 3 callers
Method
Unpack
Unpack receives collection data and creates a new collection
pkg/collection/transport.go:22
↓ 3 callers
Method
deleteVecEntry
(ctx context.Context, tx execContext, id string)
pkg/db/sqlite/store.go:933
↓ 3 callers
Method
reuseOrGenerateVector
(ctx context.Context, id string, jsonText string)
pkg/db/sqlite/store.go:945
↓ 3 callers
Method
upsertVecTable
Vector helper methods
pkg/db/sqlite/store.go:908
↓ 2 callers
Method
Address
Address returns the full address the server is listening on.
pkg/server/server.go:455
↓ 2 callers
Method
CloseAll
CloseAll closes all active connections.
pkg/dispatch/connection_manager.go:444
↓ 2 callers
Method
CountRecords
(ctx context.Context)
pkg/collection/collection.go:130
↓ 2 callers
Method
Delete
(ctx context.Context, path string)
pkg/collection/local_fs.go:33
↓ 2 callers
Method
Delete
(ctx context.Context, req *pb.DeleteRequest)
pkg/collection/collection_server.go:126
↓ 2 callers
Method
Delete
(ctx context.Context, path string)
pkg/collection/interfaces.go:14
↓ 2 callers
Method
DeleteBackup
DeleteBackup deletes a backup.
pkg/collection/backup.go:840
↓ 2 callers
Method
Describe
(ctx context.Context, req *pb.DescribeRequest)
pkg/collection/collection_server.go:298
↓ 2 callers
Method
ExecuteRaw
ExecuteRaw allows lower-level operations required for advanced features like backup (VACUUM INTO) or combination (ATTACH DATABASE).
pkg/collection/repo.go:42
↓ 2 callers
Method
Exists
(ctx context.Context, path string)
pkg/collection/local_fs.go:45
↓ 2 callers
Method
GetClient
GetClient returns a client for the given address.
pkg/dispatch/connection_manager.go:373
↓ 2 callers
Method
List
(ctx context.Context, prefix string)
pkg/collection/local_fs.go:37
↓ 2 callers
Method
ListCollections
(ctx context.Context, namespace string)
pkg/collection/registry_store.go:21
↓ 2 callers
Method
ListMessageTypes
ListMessageTypes returns all registered message types, optionally filtered by namespace
pkg/bootstrap/type_registry.go:240
↓ 2 callers
Function
New
New creates a new Collector server with the given configuration.
pkg/server/server.go:83
↓ 2 callers
Function
NewCloneManager
NewCloneManager creates a new CloneManager.
pkg/collection/clone.go:30
↓ 2 callers
Function
NewCollectionRegistryStore
NewCollectionRegistryStore creates a new registry store backed by a collection.
pkg/collection/collection_registry_store.go:19
↓ 2 callers
Function
NewCollectionRepoService
NewCollectionRepoService creates a new service instance.
pkg/collection/service.go:23
↓ 2 callers
Function
NewDeterministicEmbedder
(dim int, seed uint32)
pkg/collection/deterministic_embedder.go:17
↓ 2 callers
Function
NewMockValidator
()
pkg/dispatch/dispatcher_registry_test.go:17
↓ 2 callers
Function
NewRegistryValidator
NewRegistryValidator creates a validator from a RegistryServer
pkg/registry/helpers.go:41
↓ 2 callers
Function
NewTypeRegistry
NewTypeRegistry creates a new TypeRegistry wrapping the system/types collection
pkg/bootstrap/type_registry.go:26
↓ 2 callers
Function
NewWAFInterceptor
NewWAFInterceptor creates an interceptor that blocks requests containing specific substrings. This is a demonstration interceptor for testing/validati
pkg/security/interceptor.go:31
↓ 2 callers
Method
RecordRequest
RecordRequest increments the request count and updates activity for a connection.
pkg/dispatch/connection_manager.go:349
↓ 2 callers
Method
RecoverFromRestart
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 callers
Method
RegisterFileDescriptor
(ctx context.Context, namespace string, fileDesc *descriptorpb.FileDescriptorProto)
pkg/registry/registry.go:20
↓ 2 callers
Method
Save
Save writes content to a file at the given path.
pkg/fs/local/filesystem.go:65
↓ 2 callers
Method
SaveCollection
(ctx context.Context, collection *pb.Collection, dbPath string)
pkg/collection/registry_store.go:19
↓ 2 callers
Method
Search
(ctx context.Context, req *pb.SearchRequest)
pkg/collection/collection_server.go:178
↓ 2 callers
Method
SetTypeValidator
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 callers
Function
SetupCollectionServiceWithValidation
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 callers
Method
Shutdown
Shutdown closes all connections
pkg/dispatch/dispatcher.go:345
↓ 2 callers
Method
Shutdown
Shutdown gracefully shuts down the server.
pkg/server/server.go:396
↓ 2 callers
Method
StreamValidationInterceptor
StreamValidationInterceptor creates a gRPC stream interceptor that validates incoming RPCs against the registry.
pkg/registry/interceptor.go:56
↓ 2 callers
Method
Update
(ctx context.Context, req *pb.UpdateRequest)
pkg/collection/collection_server.go:108
↓ 2 callers
Method
ValidateMessageType
ValidateMessageType checks if a message type is registered
pkg/bootstrap/type_registry.go:181
↓ 2 callers
Method
ValidateService
ValidateService checks if a service is registered in the given namespace
pkg/registry/registry.go:415
↓ 2 callers
Method
ValidationInterceptor
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 callers
Method
WaitForShutdown
WaitForShutdown blocks until a shutdown signal is received (SIGINT, SIGTERM).
pkg/server/server.go:384
↓ 2 callers
Method
Warn
(msg string, args ...any)
pkg/logging/logger.go:32
↓ 2 callers
Method
addSimilarityThreshold
()
pkg/db/sqlite/store.go:711
↓ 2 callers
Function
buildTypeUrl
buildTypeUrl builds a type URL from a collection's message type
pkg/collection/collection_server.go:77
↓ 2 callers
Method
cleanupOldBackups
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 callers
Method
deleteBackupUnlocked
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
← previous
next →
101–200 of 726, ranked by callers