MCPcopy Create free account

hub / github.com/accretional/collector / functions

Functions726 in github.com/accretional/collector

↓ 2 callersFunctiongenerateSessionID
generateSessionID creates a unique session ID for this dispatcher instance. Format: {collectorID}_{timestamp_nano}
pkg/dispatch/dispatcher.go:18
↓ 2 callersMethodgetKNNLimit
()
pkg/db/sqlite/store.go:703
↓ 2 callersFunctionintToBool
(i int)
pkg/collection/backup.go:1077
↓ 2 callersFunctionnewTempStore
(t *testing.T)
pkg/registry/registry_test.go:54
↓ 2 callersMethodpersistConnection
persistConnection saves a new connection to the collection.
pkg/dispatch/connection_manager.go:474
↓ 2 callersFunctionsetupCollector
setupCollector creates a complete collector with all services on one gRPC server
pkg/integration/multi_collector_test.go:26
↓ 1 callersMethodBackup
Backup creates an online backup of the database to the specified path. This should be implemented in a WAL-friendly way to allow concurrent access.
pkg/collection/repo.go:38
↓ 1 callersMethodBackupOnline
BackupOnline creates an online backup using incremental page copying. This minimizes lock time by copying pages in small batches. Best for very large
pkg/db/sqlite/store.go:471
↓ 1 callersMethodBackupPath
BackupPath generates a backup file path for a collection. Format: {DataDir}/.backup/{namespace}/{collectionname}-{timestampseconds}.db
pkg/collection/paths.go:70
↓ 1 callersMethodBackupPathMicro
BackupPathMicro generates a backup file path using microsecond precision. Format: {DataDir}/.backup/{namespace}/{collectionname}-{timestampmicrosecond
pkg/collection/paths.go:97
↓ 1 callersMethodBatch
(ctx context.Context, req *pb.BatchRequest)
pkg/collection/collection_server.go:251
↓ 1 callersFunctionCleanupTimedOutOperations
CleanupTimedOutOperations scans all collections and clears timed-out operations. Should be called on server startup to recover from crashes.
pkg/collection/operation_state.go:174
↓ 1 callersMethodClone
Clone creates a consistent snapshot of the collection database. Uses SQLite's online backup API for hot backup with minimal locking. This allows concu
pkg/collection/transport.go:31
↓ 1 callersMethodCloneRemote
CloneRemote clones a collection to a remote collector using streaming.
pkg/collection/clone.go:184
↓ 1 callersMethodCollectorID
CollectorID returns the unique identifier for this collector.
pkg/server/server.go:463
↓ 1 callersMethodCountMessageTypes
CountMessageTypes returns the number of registered message types
pkg/bootstrap/type_registry.go:264
↓ 1 callersFunctionDefaultProtoSizeLimits
DefaultProtoSizeLimits returns default size limits for proto registration
pkg/registry/size_limits.go:22
↓ 1 callersMethodDeleteFile
(ctx context.Context, path string)
pkg/collection/collection.go:195
↓ 1 callersMethodError
()
pkg/collection/operation_state.go:38
↓ 1 callersMethodExecuteRaw
(q string, args ...interface{})
pkg/db/sqlite/store.go:441
↓ 1 callersMethodGetCollection
GetCollection retrieves a Collection instance by namespace and name.
pkg/collection/repo.go:254
↓ 1 callersMethodGetCollection
GetCollection retrieves a collection by namespace and name.
pkg/collection/collection_registry_store.go:103
↓ 1 callersMethodGetRecord
(ctx context.Context, id string)
pkg/collection/collection.go:97
↓ 1 callersMethodInvoke
(ctx context.Context, req *pb.InvokeRequest)
pkg/collection/collection_server.go:355
↓ 1 callersMethodListFiles
(ctx context.Context, prefix string)
pkg/collection/collection.go:199
↓ 1 callersMethodLoad
Load reads content from a file at the given path.
pkg/fs/local/filesystem.go:94
↓ 1 callersMethodLookupProtoByMessageName
LookupProtoByMessageName searches for a registered proto that contains the given message name. It searches within the specified namespace and returns
pkg/registry/registry.go:348
↓ 1 callersMethodModify
(ctx context.Context, req *pb.ModifyRequest)
pkg/collection/collection_server.go:327
↓ 1 callersMethodNamespace
Namespace returns the default namespace for this collector.
pkg/server/server.go:468
↓ 1 callersFunctionNewAuditLogger
NewAuditLogger creates a new audit logger backed by the system/audit collection.
pkg/collection/audit.go:22
↓ 1 callersFunctionNewDynamicJSONConverter
NewDynamicJSONConverter creates a converter that looks up the message type from a FileDescriptorProto and uses dynamic protobuf to convert. This is us
pkg/collection/json_converter.go:37
↓ 1 callersFunctionNewFetcher
NewFetcher creates a new Fetcher with default settings.
pkg/collection/fetch.go:22
↓ 1 callersFunctionNewGRPCRegistryValidator
NewGRPCRegistryValidator creates a validator using the provided validator implementation
pkg/registry/helpers.go:24
↓ 1 callersFunctionNewRegistryConverterFactory
NewRegistryConverterFactory creates a converter factory that looks up types from the registry. It first checks system types, then uses the provided lo
pkg/collection/json_converter.go:110
↓ 1 callersFunctionNewSystemLogger
NewSystemLogger creates a new system logger
pkg/collection/system_logger.go:27
↓ 1 callersMethodPullCollection
PullCollection streams a collection to a client.
pkg/collection/grpc_server.go:105
↓ 1 callersMethodPushCollection
PushCollection receives a streamed collection from a client and creates it locally.
pkg/collection/grpc_server.go:100
↓ 1 callersMethodReIndex
(ctx context.Context)
pkg/collection/repo.go:34
↓ 1 callersMethodReceivePushedCollection
ReceivePushedCollection handles incoming collection push streams (server-side).
pkg/collection/clone.go:447
↓ 1 callersMethodRestoreBackup
RestoreBackup restores a collection from a backup.
pkg/collection/backup.go:584
↓ 1 callersMethodSaveCollection
SaveCollection persists a collection to the registry.
pkg/collection/collection_registry_store.go:48
↓ 1 callersMethodSaveDir
SaveDir recursively saves a CollectionDir structure.
pkg/collection/collection.go:204
↓ 1 callersMethodSearch
(ctx context.Context, query *SearchQuery)
pkg/collection/collection.go:134
↓ 1 callersMethodSetJSONConverter
(conv ProtoToJSONConverter)
pkg/collection/repo.go:48
↓ 1 callersMethodSetJSONConverterFactory
SetJSONConverterFactory sets the factory used to create JSON converters for stores. If not set, stores will use fallback behavior (proto_data if valid
pkg/collection/repo.go:85
↓ 1 callersMethodSetRegistryValidator
SetRegistryValidator sets the registry validator for this dispatcher
pkg/dispatch/dispatcher.go:65
↓ 1 callersMethodSetTypeRegistrar
SetTypeRegistrar sets the type registrar for this server. This is optional - if not set, types are not registered in the type registry.
pkg/registry/registry.go:47
↓ 1 callersFunctionSetupCollectionRepoWithValidation
SetupCollectionRepoWithValidation demonstrates how to create a CollectionRepo server with registry validation enabled.
pkg/registry/integration_example.go:79
↓ 1 callersFunctionSetupDispatcherWithValidation
SetupDispatcherWithValidation demonstrates how to create a CollectiveDispatcher server with registry validation enabled.
pkg/registry/integration_example.go:49
↓ 1 callersMethodStart
Start starts the server (blocks until shutdown). This is a no-op since the server is already started in New(). Use WaitForShutdown() to block until a
pkg/server/server.go:377
↓ 1 callersMethodStreamCollectionToPuller
StreamCollectionToPuller handles outgoing collection pull streams (server-side).
pkg/collection/clone.go:586
↓ 1 callersMethodUnaryServerInterceptor
UnaryServerInterceptor returns a gRPC interceptor that logs all unary RPCs.
pkg/collection/audit.go:68
↓ 1 callersMethodUpdateMetadata
(ctx context.Context, namespace, name string, meta *pb.Collection)
pkg/collection/registry_store.go:23
↓ 1 callersFunctionValidateProtoFileName
ValidateProtoFileName validates a proto file name (allows dots for .proto extension).
pkg/collection/validation.go:100
↓ 1 callersMethodValidateProtoSizeLimits
ValidateProtoSizeLimits validates that a FileDescriptorProto is within configured limits
pkg/registry/size_limits.go:31
↓ 1 callersMethodValidateServiceMethod
(ctx context.Context, namespace, serviceName, methodName string)
pkg/registry/helpers.go:14
↓ 1 callersMethodValidateServiceMethod
(ctx context.Context, namespace, serviceName, methodName string)
pkg/dispatch/dispatcher.go:27
↓ 1 callersFunctionValidateServiceName
ValidateServiceName validates a service name (rejects slashes which break ID format).
pkg/collection/validation.go:85
↓ 1 callersMethodWith
(args ...any)
pkg/collection/system_logger.go:133
↓ 1 callersFunctionWithValidation
WithValidation returns gRPC server options that add registry validation interceptors for the specified namespace.
pkg/registry/helpers.go:63
↓ 1 callersFunctionaddContentToTar
addContentToTar adds content from memory to a tar archive.
pkg/collection/transport.go:344
↓ 1 callersFunctionaddFileToTar
addFileToTar adds a file from disk to a tar archive.
pkg/collection/transport.go:313
↓ 1 callersMethodautoRoute
autoRoute automatically routes a request based on namespace
pkg/dispatch/dispatcher.go:274
↓ 1 callersFunctionboolToInt
(b bool)
pkg/collection/backup.go:1070
↓ 1 callersMethodbootstrapAudit
bootstrapAudit creates the audit logging collection
pkg/bootstrap/system_collections.go:336
↓ 1 callersMethodbootstrapCollectionRegistry
bootstrapCollectionRegistry creates the self-referential collection registry This is the "chicken and egg" - the collection that tracks all collection
pkg/bootstrap/system_collections.go:90
↓ 1 callersMethodbootstrapConnections
bootstrapConnections creates the connection tracking collection
pkg/bootstrap/system_collections.go:265
↓ 1 callersMethodbootstrapLogs
bootstrapLogs creates the system logs collection for structured logging
pkg/bootstrap/system_collections.go:408
↓ 1 callersMethodbootstrapTypeRegistry
bootstrapTypeRegistry creates the type registry collection This will store registered proto types and enable request validation
pkg/bootstrap/system_collections.go:186
↓ 1 callersMethodbuildFTS
(ctx context.Context)
pkg/db/sqlite/store.go:662
↓ 1 callersMethodbuildHybrid
(ctx context.Context)
pkg/db/sqlite/store.go:596
↓ 1 callersMethodbuildJSONFilters
(filters map[string]collection.Filter)
pkg/db/sqlite/store.go:767
↓ 1 callersMethodbuildLabelFilters
(labelFilters map[string]string)
pkg/db/sqlite/store.go:791
↓ 1 callersMethodbuildScalar
(ctx context.Context)
pkg/db/sqlite/store.go:682
↓ 1 callersMethodbuildVector
(ctx context.Context)
pkg/db/sqlite/store.go:631
↓ 1 callersFunctioncalculateMaxNestingDepth
calculateMaxNestingDepth calculates the maximum nesting depth in a proto file
pkg/registry/size_limits.go:71
↓ 1 callersFunctioncalculateNestingDepthRecursive
calculateNestingDepthRecursive recursively calculates nesting depth for a message
pkg/registry/size_limits.go:83
↓ 1 callersFunctioncheckMessage
checkMessage recursively checks string fields in a protobuf message
pkg/security/interceptor.go:44
↓ 1 callersFunctioncheckMessageReflect
checkMessageReflect recursively checks all string fields including nested messages
pkg/security/interceptor.go:49
↓ 1 callersFunctioncontainsString
(s, substr string)
pkg/integration/type_validation_test.go:159
↓ 1 callersFunctionconvertStructpbValue
convertStructpbValue converts a structpb.Value to a native Go type
pkg/collection/collection_server.go:85
↓ 1 callersFunctioncountMessageTypesRecursive
countMessageTypesRecursive recursively counts message types including nested ones
pkg/registry/size_limits.go:62
↓ 1 callersMethodcountPreviousConnections
countPreviousConnections counts how many times a source has connected to us.
pkg/dispatch/connection_manager.go:562
↓ 1 callersMethodcountPreviousConnectionsToTarget
countPreviousConnectionsToTarget counts how many times we've connected to a target.
pkg/dispatch/connection_manager.go:580
↓ 1 callersFunctioncountTotalMessageTypes
countTotalMessageTypes recursively counts all message types in a proto file
pkg/registry/size_limits.go:53
↓ 1 callersFunctiondeserializeVector
(blob []byte)
pkg/db/sqlite/store.go:1005
↓ 1 callersMethoddispatchToTarget
dispatchToTarget sends a request to a specific target collector
pkg/dispatch/dispatcher.go:213
↓ 1 callersFunctionensureDir
(filePath string)
pkg/integration/type_validation_test.go:15
↓ 1 callersFunctionescapeJSONPathKey
escapeJSONPathKey escapes a key for use in SQLite JSON path expressions. Keys with dots, brackets, quotes, or other special characters need to be quot
pkg/db/sqlite/store.go:806
↓ 1 callersFunctionextractTextFromJSON
(jsonText string)
pkg/db/sqlite/store.go:1093
↓ 1 callersMethodfindSharedNamespaces
findSharedNamespaces finds namespaces that are in both lists.
pkg/dispatch/connection_manager.go:598
↓ 1 callersFunctiongenerateBackupID
Helper functions
pkg/collection/backup.go:1064
↓ 1 callersMethodgenerateVector
(ctx context.Context, jsonText string)
pkg/db/sqlite/store.go:962
↓ 1 callersFunctiongetNamespaceHierarchy
getNamespaceHierarchy returns a namespace and all its parent namespaces For example, "team/project/service" returns ["team/project/service", "team/pro
pkg/registry/registry.go:93
↓ 1 callersFunctionisWellKnownType
isWellKnownType checks if a proto file is a well-known type that doesn't require registration
pkg/registry/registry.go:52
↓ 1 callersMethodloadFromRegistry
loadFromRegistry loads existing collections from the registry store into the in-memory cache. This is called during initialization to restore state.
pkg/collection/service.go:245
↓ 1 callersFunctionnewSQLiteStore
(ctx context.Context, config Config)
pkg/db/store.go:46
↓ 1 callersFunctionoffsetToPageToken
(offset int)
pkg/collection/collection_server.go:370
↓ 1 callersFunctionpageTokenToOffset
(token string)
pkg/collection/collection_server.go:359
↓ 1 callersMethodrebuildVectorIndex
(ctx context.Context, tx *sql.Tx)
pkg/db/sqlite/store.go:1034
← previousnext →201–300 of 726, ranked by callers