MCPcopy Create free account

hub / github.com/accretional/collector / functions

Functions726 in github.com/accretional/collector

↓ 210 callersMethodString
()
pkg/logging/logger.go:13
↓ 159 callersMethodClose
Lifecycle
pkg/collection/repo.go:16
↓ 143 callersMethodError
(msg string, args ...any)
pkg/logging/logger.go:33
↓ 77 callersMethodCreateRecord
CRUD
pkg/collection/repo.go:21
↓ 75 callersMethodCreateCollection
(ctx context.Context, collection *pb.Collection)
pkg/collection/interfaces.go:21
↓ 58 callersFunctionNewStore
(path string, opts collection.Options)
pkg/db/sqlite/store.go:36
↓ 54 callersFunctionsetupTestServer
(t *testing.T)
pkg/registry/registry_test.go:17
↓ 50 callersMethodGetRecord
(ctx context.Context, id string)
pkg/collection/repo.go:22
↓ 47 callersFunctionsetupTestCollection
setupTestCollection creates a REAL SQLite-backed collection for integration testing.
pkg/collection/setup_test.go:18
↓ 44 callersMethodRegisterProto
(ctx context.Context, req *collector.RegisterProtoRequest)
pkg/registry/registry.go:164
↓ 38 callersFunctionsetupTestRepo
setupTestRepo creates a REAL CollectionRepo for integration testing.
pkg/collection/setup_test.go:91
↓ 37 callersMethodSearch
Search The store implementation handles translating generic queries into SQL/FTS/Vector logic.
pkg/collection/repo.go:30
↓ 37 callersFunctioncreateTestRecord
(t *testing.T, id string, data map[string]interface{})
pkg/collection/search_test.go:13
↓ 36 callersFunctionNewPathConfig
NewPathConfig creates a new PathConfig with the specified data directory.
pkg/collection/paths.go:17
↓ 30 callersMethodLoad
(ctx context.Context, path string)
pkg/collection/interfaces.go:13
↓ 29 callersMethodClose
()
pkg/db/sqlite/store.go:158
↓ 29 callersFunctionNewCollection
NewCollection initializes a Collection.
pkg/collection/collection.go:36
↓ 29 callersMethodServe
Serve handles service method invocations from other collectors
pkg/dispatch/dispatcher.go:77
↓ 26 callersMethodGetCollection
(ctx context.Context, namespace, name string)
pkg/collection/interfaces.go:26
↓ 24 callersMethodGetName
()
pkg/collection/collection.go:147
↓ 24 callersMethodStat
(ctx context.Context, path string)
pkg/collection/interfaces.go:16
↓ 24 callersMethodshutdown
shutdown stops the test server
pkg/dispatch/dispatcher_test.go:67
↓ 23 callersMethodExecContext
(ctx context.Context, query string, args ...interface{})
pkg/db/sqlite/store.go:33
↓ 23 callersMethodRegisterService
(ctx context.Context, req *collector.RegisterServiceRequest)
pkg/registry/registry.go:257
↓ 22 callersMethodCreateRecord
(ctx context.Context, r *pb.CollectionRecord)
pkg/db/sqlite/store.go:169
↓ 21 callersFunctionstringPtr
(s string)
pkg/registry/integration_example.go:172
↓ 20 callersMethodDiscover
(ctx context.Context, req *pb.DiscoverRequest)
pkg/collection/interfaces.go:23
↓ 19 callersFunctionNewCollectionServer
(repo CollectionRepo)
pkg/collection/collection_server.go:22
↓ 19 callersFunctionNewLocalFileSystem
NewLocalFileSystem creates a new LocalFileSystem rooted at the given path.
pkg/collection/local_fs.go:17
↓ 18 callersMethodCreate
(ctx context.Context, req *pb.CreateRequest)
pkg/collection/collection_server.go:28
↓ 17 callersMethodRegisterService
RegisterService registers a service handler for a namespace and method
pkg/dispatch/dispatcher.go:190
↓ 17 callersFunctionsetupTestServer
setupTestServer creates a test gRPC server with a dispatcher
pkg/dispatch/dispatcher_test.go:30
↓ 16 callersMethodCollectionDBPath
CollectionDBPath returns the path for a collection's database file. Format: {DataDir}/{namespace}/{name}.db
pkg/collection/paths.go:28
↓ 16 callersMethodInfo
(msg string, args ...any)
pkg/logging/logger.go:31
↓ 16 callersFunctionsetupGrpcServer
setupGrpcServer creates a test gRPC server with PathConfig
pkg/collection/grpc_server_test.go:16
↓ 16 callersFunctionsetupTestService
setupTestService creates a test service instance
pkg/collection/service_test.go:15
↓ 15 callersFunctionBootstrapSystemCollections
BootstrapSystemCollections initializes all system collections in the correct order This creates a self-referential bootstrap sequence where: 1. Collec
pkg/bootstrap/system_collections.go:47
↓ 15 callersFunctionNewStore
(ctx context.Context, config Config)
pkg/db/store.go:33
↓ 14 callersMethodCollectionFilesPath
CollectionFilesPath returns the path for a collection's file storage. Format: {DataDir}/files/{namespace}/{name}
pkg/collection/paths.go:40
↓ 14 callersMethodSearch
(ctx context.Context, q *collection.SearchQuery)
pkg/db/sqlite/store.go:557
↓ 13 callersMethodListConnections
ListConnections returns Connection protos for all active connections. If persistence is enabled, this loads the persisted data. Otherwise, it uses the
pkg/dispatch/connection_manager.go:407
↓ 13 callersFunctionNewBackupManager
NewBackupManager creates a new backup manager.
pkg/collection/backup.go:311
↓ 13 callersMethodUpdateRecord
(ctx context.Context, record *pb.CollectionRecord)
pkg/collection/repo.go:23
↓ 13 callersFunctionValidateNamespace
ValidateNamespace validates a namespace name and checks if it's reserved.
pkg/collection/validation.go:66
↓ 12 callersMethodClose
Close closes the backup manager.
pkg/collection/backup.go:333
↓ 12 callersMethodCountRecords
(ctx context.Context)
pkg/collection/repo.go:26
↓ 12 callersMethodRoute
(ctx context.Context, req *pb.RouteRequest)
pkg/collection/interfaces.go:24
↓ 12 callersMethodSearchCollections
(ctx context.Context, req *pb.SearchCollectionsRequest)
pkg/collection/interfaces.go:25
↓ 12 callersMethoddialContext
dialContext creates a client connection to the test server
pkg/dispatch/dispatcher_test.go:57
↓ 11 callersFunctionCheckOperationConflict
CheckOperationConflict checks if an operation can start. Returns ErrOperationInProgress if a non-timed-out operation exists.
pkg/collection/operation_state.go:97
↓ 11 callersMethodListRecords
(ctx context.Context, offset, limit int)
pkg/collection/repo.go:25
↓ 11 callersFunctionNewConnectionManager
NewConnectionManager creates a new connection manager. The sessionID should be unique per collector restart (e.g., UUID or timestamp-based).
pkg/dispatch/connection_manager.go:51
↓ 11 callersFunctionsetupTestStore
(t *testing.T, opts collection.Options)
pkg/db/sqlite/store_test.go:13
↓ 10 callersMethodGetConnectionManager
GetConnectionManager returns the connection manager
pkg/dispatch/dispatcher.go:208
↓ 10 callersMethodList
(ctx context.Context, prefix string)
pkg/collection/interfaces.go:15
↓ 10 callersMethodLog
Log records an audit event.
pkg/collection/audit.go:29
↓ 10 callersFunctionValidateCollectionName
ValidateCollectionName validates a collection name.
pkg/collection/validation.go:80
↓ 10 callersFunctioncreateTestStore
createTestStore creates a simple SQLite store for testing
pkg/collection/backup_test.go:19
↓ 10 callersMethodsanitizePath
sanitizePath validates and cleans a user-provided path to prevent directory traversal attacks. Returns error if the path attempts to escape the root d
pkg/fs/local/filesystem.go:34
↓ 9 callersMethodClose
()
pkg/collection/collection.go:142
↓ 9 callersMethodConnect
Connect handles incoming connection requests
pkg/dispatch/dispatcher.go:72
↓ 9 callersMethodFindSimilar
FindSimilar performs a semantic search by embedding the query text and running a vector search against the Store.
pkg/collection/semantics.go:20
↓ 9 callersMethodGetFile
GetFile retrieves a file. It automatically handles the logic of returning raw bytes for small files or a URI for large files (optional optimization).
pkg/collection/collection.go:169
↓ 9 callersMethodSaveFile
--- Filesystem Logic --- SaveFile writes a CollectionData proto to the underlying FileSystem.
pkg/collection/collection.go:152
↓ 9 callersMethodValidateMethod
ValidateMethod checks if a method exists on a registered service
pkg/registry/registry.go:430
↓ 9 callersFunctioncreateTestRecord
(id string, data string, labels map[string]string)
pkg/db/sqlite/store_test.go:27
↓ 9 callersFunctionsetupTestCollectionWithVector
(t *testing.T)
pkg/collection/semantics_test.go:20
↓ 8 callersMethodBackupCollection
BackupCollection creates a backup of a collection.
pkg/collection/backup.go:338
↓ 8 callersMethodBackupDir
BackupDir returns the base backup directory. Format: {DataDir}/.backup
pkg/collection/paths.go:64
↓ 8 callersFunctionCompleteOperation
CompleteOperation clears the operation state after completion. If the collection no longer exists (e.g., it was deleted), this is a no-op and returns
pkg/collection/operation_state.go:156
↓ 8 callersMethodGet
(ctx context.Context, req *pb.GetRequest)
pkg/collection/collection_server.go:51
↓ 8 callersFunctionGetOperationState
GetOperationState reads the operation state from collection metadata. Returns nil if no operation is in progress.
pkg/collection/operation_state.go:47
↓ 8 callersMethodHandleConnect
HandleConnect processes an incoming connection request from another collector.
pkg/dispatch/connection_manager.go:115
↓ 8 callersMethodLookupService
LookupService retrieves a registered service by namespace and service name
pkg/registry/registry.go:375
↓ 8 callersFunctionNewBackupMetadataStore
NewBackupMetadataStore creates a new backup metadata store.
pkg/collection/backup.go:53
↓ 8 callersFunctionNewStaticJSONConverter
NewStaticJSONConverter creates a converter for a known proto.Message type. Use this for system collections where the type is known at compile time.
pkg/collection/json_converter.go:18
↓ 8 callersMethodSaveBackup
SaveBackup saves backup metadata.
pkg/collection/backup.go:100
↓ 8 callersMethodSetJSONConverter
SetJSONConverter sets the function used to convert binary proto_data to JSON for the jsontext column. This must be called before CreateRecord/UpdateRe
pkg/db/sqlite/store.go:165
↓ 8 callersFunctionStartOperation
StartOperation begins a new operation by setting the operation state. Returns error if an operation is already in progress.
pkg/collection/operation_state.go:120
↓ 8 callersFunctionsetupTestCollection
setupTestCollection creates a test collection for connections
pkg/dispatch/connection_persistence_test.go:16
↓ 7 callersMethodBackup
Backup creates an online backup of the database to the specified path. This method is WAL-friendly and allows concurrent reads/writes during backup. I
pkg/db/sqlite/store.go:449
↓ 7 callersMethodClose
Close closes the metadata store.
pkg/collection/backup.go:95
↓ 7 callersMethodDeleteCollection
(ctx context.Context, req *pb.DeleteCollectionRequest)
pkg/collection/interfaces.go:22
↓ 7 callersMethodDeleteRecord
(ctx context.Context, id string)
pkg/collection/repo.go:24
↓ 7 callersFunctionGetSystemTypeConverter
GetSystemTypeConverter returns a converter for a known system type by name. Returns nil if the type is not a known system type.
pkg/collection/json_converter.go:84
↓ 7 callersFunctionsetupRealTestServer
(t *testing.T, collectorID, address string, namespaces []string)
pkg/dispatch/dispatcher_test.go:362
↓ 6 callersMethodBackupsMetadataPath
BackupsMetadataPath returns the path for backup metadata database. Format: {DataDir}/backups/metadata.db
pkg/collection/paths.go:58
↓ 6 callersMethodConnectTo
ConnectTo initiates a connection to another collector
pkg/dispatch/dispatcher.go:203
↓ 6 callersMethodDispatch
Dispatch routes a request to the appropriate collector
pkg/dispatch/dispatcher.go:160
↓ 6 callersMethodGetRecord
(ctx context.Context, id string)
pkg/db/sqlite/store.go:246
↓ 6 callersMethodListServices
ListServices returns all registered services, optionally filtered by namespace
pkg/registry/registry.go:504
↓ 6 callersFunctionNewCollectionRegistryStoreFromStore
NewCollectionRegistryStoreFromStore creates a CollectionRegistryStore using the provided Store. This is useful for testing where you want to use an in
pkg/collection/collection_registry_store.go:28
↓ 6 callersFunctionNewCollectionRepo
NewCollectionRepo creates a new DefaultCollectionRepo with the given Store, PathConfig, RegistryStore, and StoreFactory.
pkg/collection/repo.go:66
↓ 6 callersFunctionNewCollectionWithOptions
NewCollectionWithOptions initializes a Collection with functional options.
pkg/collection/collection.go:41
↓ 5 callersMethodCountRecords
(ctx context.Context)
pkg/db/sqlite/store.go:430
↓ 5 callersMethodEmbed
(ctx context.Context, text string)
pkg/collection/semantics.go:9
↓ 5 callersMethodGetMessageType
GetMessageType retrieves a registered message type's validation rule
pkg/bootstrap/type_registry.go:206
↓ 5 callersMethodGetNamespace
()
pkg/collection/collection.go:146
↓ 5 callersFunctionNewDispatcher
NewDispatcher creates a new dispatcher instance
pkg/dispatch/dispatcher.go:46
↓ 5 callersFunctionNewServerWithValidation
NewServerWithValidation creates a new gRPC server with registry validation enabled
pkg/registry/helpers.go:71
next →1–100 of 726, ranked by callers