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
↓ 210 callers
Method
String
()
pkg/logging/logger.go:13
↓ 159 callers
Method
Close
Lifecycle
pkg/collection/repo.go:16
↓ 143 callers
Method
Error
(msg string, args ...any)
pkg/logging/logger.go:33
↓ 77 callers
Method
CreateRecord
CRUD
pkg/collection/repo.go:21
↓ 75 callers
Method
CreateCollection
(ctx context.Context, collection *pb.Collection)
pkg/collection/interfaces.go:21
↓ 58 callers
Function
NewStore
(path string, opts collection.Options)
pkg/db/sqlite/store.go:36
↓ 54 callers
Function
setupTestServer
(t *testing.T)
pkg/registry/registry_test.go:17
↓ 50 callers
Method
GetRecord
(ctx context.Context, id string)
pkg/collection/repo.go:22
↓ 47 callers
Function
setupTestCollection
setupTestCollection creates a REAL SQLite-backed collection for integration testing.
pkg/collection/setup_test.go:18
↓ 44 callers
Method
RegisterProto
(ctx context.Context, req *collector.RegisterProtoRequest)
pkg/registry/registry.go:164
↓ 38 callers
Function
setupTestRepo
setupTestRepo creates a REAL CollectionRepo for integration testing.
pkg/collection/setup_test.go:91
↓ 37 callers
Method
Search
Search The store implementation handles translating generic queries into SQL/FTS/Vector logic.
pkg/collection/repo.go:30
↓ 37 callers
Function
createTestRecord
(t *testing.T, id string, data map[string]interface{})
pkg/collection/search_test.go:13
↓ 36 callers
Function
NewPathConfig
NewPathConfig creates a new PathConfig with the specified data directory.
pkg/collection/paths.go:17
↓ 30 callers
Method
Load
(ctx context.Context, path string)
pkg/collection/interfaces.go:13
↓ 29 callers
Method
Close
()
pkg/db/sqlite/store.go:158
↓ 29 callers
Function
NewCollection
NewCollection initializes a Collection.
pkg/collection/collection.go:36
↓ 29 callers
Method
Serve
Serve handles service method invocations from other collectors
pkg/dispatch/dispatcher.go:77
↓ 26 callers
Method
GetCollection
(ctx context.Context, namespace, name string)
pkg/collection/interfaces.go:26
↓ 24 callers
Method
GetName
()
pkg/collection/collection.go:147
↓ 24 callers
Method
Stat
(ctx context.Context, path string)
pkg/collection/interfaces.go:16
↓ 24 callers
Method
shutdown
shutdown stops the test server
pkg/dispatch/dispatcher_test.go:67
↓ 23 callers
Method
ExecContext
(ctx context.Context, query string, args ...interface{})
pkg/db/sqlite/store.go:33
↓ 23 callers
Method
RegisterService
(ctx context.Context, req *collector.RegisterServiceRequest)
pkg/registry/registry.go:257
↓ 22 callers
Method
CreateRecord
(ctx context.Context, r *pb.CollectionRecord)
pkg/db/sqlite/store.go:169
↓ 21 callers
Function
stringPtr
(s string)
pkg/registry/integration_example.go:172
↓ 20 callers
Method
Discover
(ctx context.Context, req *pb.DiscoverRequest)
pkg/collection/interfaces.go:23
↓ 19 callers
Function
NewCollectionServer
(repo CollectionRepo)
pkg/collection/collection_server.go:22
↓ 19 callers
Function
NewLocalFileSystem
NewLocalFileSystem creates a new LocalFileSystem rooted at the given path.
pkg/collection/local_fs.go:17
↓ 18 callers
Method
Create
(ctx context.Context, req *pb.CreateRequest)
pkg/collection/collection_server.go:28
↓ 17 callers
Method
RegisterService
RegisterService registers a service handler for a namespace and method
pkg/dispatch/dispatcher.go:190
↓ 17 callers
Function
setupTestServer
setupTestServer creates a test gRPC server with a dispatcher
pkg/dispatch/dispatcher_test.go:30
↓ 16 callers
Method
CollectionDBPath
CollectionDBPath returns the path for a collection's database file. Format: {DataDir}/{namespace}/{name}.db
pkg/collection/paths.go:28
↓ 16 callers
Method
Info
(msg string, args ...any)
pkg/logging/logger.go:31
↓ 16 callers
Function
setupGrpcServer
setupGrpcServer creates a test gRPC server with PathConfig
pkg/collection/grpc_server_test.go:16
↓ 16 callers
Function
setupTestService
setupTestService creates a test service instance
pkg/collection/service_test.go:15
↓ 15 callers
Function
BootstrapSystemCollections
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 callers
Function
NewStore
(ctx context.Context, config Config)
pkg/db/store.go:33
↓ 14 callers
Method
CollectionFilesPath
CollectionFilesPath returns the path for a collection's file storage. Format: {DataDir}/files/{namespace}/{name}
pkg/collection/paths.go:40
↓ 14 callers
Method
Search
(ctx context.Context, q *collection.SearchQuery)
pkg/db/sqlite/store.go:557
↓ 13 callers
Method
ListConnections
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 callers
Function
NewBackupManager
NewBackupManager creates a new backup manager.
pkg/collection/backup.go:311
↓ 13 callers
Method
UpdateRecord
(ctx context.Context, record *pb.CollectionRecord)
pkg/collection/repo.go:23
↓ 13 callers
Function
ValidateNamespace
ValidateNamespace validates a namespace name and checks if it's reserved.
pkg/collection/validation.go:66
↓ 12 callers
Method
Close
Close closes the backup manager.
pkg/collection/backup.go:333
↓ 12 callers
Method
CountRecords
(ctx context.Context)
pkg/collection/repo.go:26
↓ 12 callers
Method
Route
(ctx context.Context, req *pb.RouteRequest)
pkg/collection/interfaces.go:24
↓ 12 callers
Method
SearchCollections
(ctx context.Context, req *pb.SearchCollectionsRequest)
pkg/collection/interfaces.go:25
↓ 12 callers
Method
dialContext
dialContext creates a client connection to the test server
pkg/dispatch/dispatcher_test.go:57
↓ 11 callers
Function
CheckOperationConflict
CheckOperationConflict checks if an operation can start. Returns ErrOperationInProgress if a non-timed-out operation exists.
pkg/collection/operation_state.go:97
↓ 11 callers
Method
ListRecords
(ctx context.Context, offset, limit int)
pkg/collection/repo.go:25
↓ 11 callers
Function
NewConnectionManager
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 callers
Function
setupTestStore
(t *testing.T, opts collection.Options)
pkg/db/sqlite/store_test.go:13
↓ 10 callers
Method
GetConnectionManager
GetConnectionManager returns the connection manager
pkg/dispatch/dispatcher.go:208
↓ 10 callers
Method
List
(ctx context.Context, prefix string)
pkg/collection/interfaces.go:15
↓ 10 callers
Method
Log
Log records an audit event.
pkg/collection/audit.go:29
↓ 10 callers
Function
ValidateCollectionName
ValidateCollectionName validates a collection name.
pkg/collection/validation.go:80
↓ 10 callers
Function
createTestStore
createTestStore creates a simple SQLite store for testing
pkg/collection/backup_test.go:19
↓ 10 callers
Method
sanitizePath
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 callers
Method
Close
()
pkg/collection/collection.go:142
↓ 9 callers
Method
Connect
Connect handles incoming connection requests
pkg/dispatch/dispatcher.go:72
↓ 9 callers
Method
FindSimilar
FindSimilar performs a semantic search by embedding the query text and running a vector search against the Store.
pkg/collection/semantics.go:20
↓ 9 callers
Method
GetFile
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 callers
Method
SaveFile
--- Filesystem Logic --- SaveFile writes a CollectionData proto to the underlying FileSystem.
pkg/collection/collection.go:152
↓ 9 callers
Method
ValidateMethod
ValidateMethod checks if a method exists on a registered service
pkg/registry/registry.go:430
↓ 9 callers
Function
createTestRecord
(id string, data string, labels map[string]string)
pkg/db/sqlite/store_test.go:27
↓ 9 callers
Function
setupTestCollectionWithVector
(t *testing.T)
pkg/collection/semantics_test.go:20
↓ 8 callers
Method
BackupCollection
BackupCollection creates a backup of a collection.
pkg/collection/backup.go:338
↓ 8 callers
Method
BackupDir
BackupDir returns the base backup directory. Format: {DataDir}/.backup
pkg/collection/paths.go:64
↓ 8 callers
Function
CompleteOperation
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 callers
Method
Get
(ctx context.Context, req *pb.GetRequest)
pkg/collection/collection_server.go:51
↓ 8 callers
Function
GetOperationState
GetOperationState reads the operation state from collection metadata. Returns nil if no operation is in progress.
pkg/collection/operation_state.go:47
↓ 8 callers
Method
HandleConnect
HandleConnect processes an incoming connection request from another collector.
pkg/dispatch/connection_manager.go:115
↓ 8 callers
Method
LookupService
LookupService retrieves a registered service by namespace and service name
pkg/registry/registry.go:375
↓ 8 callers
Function
NewBackupMetadataStore
NewBackupMetadataStore creates a new backup metadata store.
pkg/collection/backup.go:53
↓ 8 callers
Function
NewStaticJSONConverter
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 callers
Method
SaveBackup
SaveBackup saves backup metadata.
pkg/collection/backup.go:100
↓ 8 callers
Method
SetJSONConverter
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 callers
Function
StartOperation
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 callers
Function
setupTestCollection
setupTestCollection creates a test collection for connections
pkg/dispatch/connection_persistence_test.go:16
↓ 7 callers
Method
Backup
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 callers
Method
Close
Close closes the metadata store.
pkg/collection/backup.go:95
↓ 7 callers
Method
DeleteCollection
(ctx context.Context, req *pb.DeleteCollectionRequest)
pkg/collection/interfaces.go:22
↓ 7 callers
Method
DeleteRecord
(ctx context.Context, id string)
pkg/collection/repo.go:24
↓ 7 callers
Function
GetSystemTypeConverter
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 callers
Function
setupRealTestServer
(t *testing.T, collectorID, address string, namespaces []string)
pkg/dispatch/dispatcher_test.go:362
↓ 6 callers
Method
BackupsMetadataPath
BackupsMetadataPath returns the path for backup metadata database. Format: {DataDir}/backups/metadata.db
pkg/collection/paths.go:58
↓ 6 callers
Method
ConnectTo
ConnectTo initiates a connection to another collector
pkg/dispatch/dispatcher.go:203
↓ 6 callers
Method
Dispatch
Dispatch routes a request to the appropriate collector
pkg/dispatch/dispatcher.go:160
↓ 6 callers
Method
GetRecord
(ctx context.Context, id string)
pkg/db/sqlite/store.go:246
↓ 6 callers
Method
ListServices
ListServices returns all registered services, optionally filtered by namespace
pkg/registry/registry.go:504
↓ 6 callers
Function
NewCollectionRegistryStoreFromStore
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 callers
Function
NewCollectionRepo
NewCollectionRepo creates a new DefaultCollectionRepo with the given Store, PathConfig, RegistryStore, and StoreFactory.
pkg/collection/repo.go:66
↓ 6 callers
Function
NewCollectionWithOptions
NewCollectionWithOptions initializes a Collection with functional options.
pkg/collection/collection.go:41
↓ 5 callers
Method
CountRecords
(ctx context.Context)
pkg/db/sqlite/store.go:430
↓ 5 callers
Method
Embed
(ctx context.Context, text string)
pkg/collection/semantics.go:9
↓ 5 callers
Method
GetMessageType
GetMessageType retrieves a registered message type's validation rule
pkg/bootstrap/type_registry.go:206
↓ 5 callers
Method
GetNamespace
()
pkg/collection/collection.go:146
↓ 5 callers
Function
NewDispatcher
NewDispatcher creates a new dispatcher instance
pkg/dispatch/dispatcher.go:46
↓ 5 callers
Function
NewServerWithValidation
NewServerWithValidation creates a new gRPC server with registry validation enabled
pkg/registry/helpers.go:71
next →
1–100 of 726, ranked by callers