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
↓ 2 callers
Function
generateSessionID
generateSessionID creates a unique session ID for this dispatcher instance. Format: {collectorID}_{timestamp_nano}
pkg/dispatch/dispatcher.go:18
↓ 2 callers
Method
getKNNLimit
()
pkg/db/sqlite/store.go:703
↓ 2 callers
Function
intToBool
(i int)
pkg/collection/backup.go:1077
↓ 2 callers
Function
newTempStore
(t *testing.T)
pkg/registry/registry_test.go:54
↓ 2 callers
Method
persistConnection
persistConnection saves a new connection to the collection.
pkg/dispatch/connection_manager.go:474
↓ 2 callers
Function
setupCollector
setupCollector creates a complete collector with all services on one gRPC server
pkg/integration/multi_collector_test.go:26
↓ 1 callers
Method
Backup
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 callers
Method
BackupOnline
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 callers
Method
BackupPath
BackupPath generates a backup file path for a collection. Format: {DataDir}/.backup/{namespace}/{collectionname}-{timestampseconds}.db
pkg/collection/paths.go:70
↓ 1 callers
Method
BackupPathMicro
BackupPathMicro generates a backup file path using microsecond precision. Format: {DataDir}/.backup/{namespace}/{collectionname}-{timestampmicrosecond
pkg/collection/paths.go:97
↓ 1 callers
Method
Batch
(ctx context.Context, req *pb.BatchRequest)
pkg/collection/collection_server.go:251
↓ 1 callers
Function
CleanupTimedOutOperations
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 callers
Method
Clone
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 callers
Method
CloneRemote
CloneRemote clones a collection to a remote collector using streaming.
pkg/collection/clone.go:184
↓ 1 callers
Method
CollectorID
CollectorID returns the unique identifier for this collector.
pkg/server/server.go:463
↓ 1 callers
Method
CountMessageTypes
CountMessageTypes returns the number of registered message types
pkg/bootstrap/type_registry.go:264
↓ 1 callers
Function
DefaultProtoSizeLimits
DefaultProtoSizeLimits returns default size limits for proto registration
pkg/registry/size_limits.go:22
↓ 1 callers
Method
DeleteFile
(ctx context.Context, path string)
pkg/collection/collection.go:195
↓ 1 callers
Method
Error
()
pkg/collection/operation_state.go:38
↓ 1 callers
Method
ExecuteRaw
(q string, args ...interface{})
pkg/db/sqlite/store.go:441
↓ 1 callers
Method
GetCollection
GetCollection retrieves a Collection instance by namespace and name.
pkg/collection/repo.go:254
↓ 1 callers
Method
GetCollection
GetCollection retrieves a collection by namespace and name.
pkg/collection/collection_registry_store.go:103
↓ 1 callers
Method
GetRecord
(ctx context.Context, id string)
pkg/collection/collection.go:97
↓ 1 callers
Method
Invoke
(ctx context.Context, req *pb.InvokeRequest)
pkg/collection/collection_server.go:355
↓ 1 callers
Method
ListFiles
(ctx context.Context, prefix string)
pkg/collection/collection.go:199
↓ 1 callers
Method
Load
Load reads content from a file at the given path.
pkg/fs/local/filesystem.go:94
↓ 1 callers
Method
LookupProtoByMessageName
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 callers
Method
Modify
(ctx context.Context, req *pb.ModifyRequest)
pkg/collection/collection_server.go:327
↓ 1 callers
Method
Namespace
Namespace returns the default namespace for this collector.
pkg/server/server.go:468
↓ 1 callers
Function
NewAuditLogger
NewAuditLogger creates a new audit logger backed by the system/audit collection.
pkg/collection/audit.go:22
↓ 1 callers
Function
NewDynamicJSONConverter
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 callers
Function
NewFetcher
NewFetcher creates a new Fetcher with default settings.
pkg/collection/fetch.go:22
↓ 1 callers
Function
NewGRPCRegistryValidator
NewGRPCRegistryValidator creates a validator using the provided validator implementation
pkg/registry/helpers.go:24
↓ 1 callers
Function
NewRegistryConverterFactory
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 callers
Function
NewSystemLogger
NewSystemLogger creates a new system logger
pkg/collection/system_logger.go:27
↓ 1 callers
Method
PullCollection
PullCollection streams a collection to a client.
pkg/collection/grpc_server.go:105
↓ 1 callers
Method
PushCollection
PushCollection receives a streamed collection from a client and creates it locally.
pkg/collection/grpc_server.go:100
↓ 1 callers
Method
ReIndex
(ctx context.Context)
pkg/collection/repo.go:34
↓ 1 callers
Method
ReceivePushedCollection
ReceivePushedCollection handles incoming collection push streams (server-side).
pkg/collection/clone.go:447
↓ 1 callers
Method
RestoreBackup
RestoreBackup restores a collection from a backup.
pkg/collection/backup.go:584
↓ 1 callers
Method
SaveCollection
SaveCollection persists a collection to the registry.
pkg/collection/collection_registry_store.go:48
↓ 1 callers
Method
SaveDir
SaveDir recursively saves a CollectionDir structure.
pkg/collection/collection.go:204
↓ 1 callers
Method
Search
(ctx context.Context, query *SearchQuery)
pkg/collection/collection.go:134
↓ 1 callers
Method
SetJSONConverter
(conv ProtoToJSONConverter)
pkg/collection/repo.go:48
↓ 1 callers
Method
SetJSONConverterFactory
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 callers
Method
SetRegistryValidator
SetRegistryValidator sets the registry validator for this dispatcher
pkg/dispatch/dispatcher.go:65
↓ 1 callers
Method
SetTypeRegistrar
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 callers
Function
SetupCollectionRepoWithValidation
SetupCollectionRepoWithValidation demonstrates how to create a CollectionRepo server with registry validation enabled.
pkg/registry/integration_example.go:79
↓ 1 callers
Function
SetupDispatcherWithValidation
SetupDispatcherWithValidation demonstrates how to create a CollectiveDispatcher server with registry validation enabled.
pkg/registry/integration_example.go:49
↓ 1 callers
Method
Start
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 callers
Method
StreamCollectionToPuller
StreamCollectionToPuller handles outgoing collection pull streams (server-side).
pkg/collection/clone.go:586
↓ 1 callers
Method
UnaryServerInterceptor
UnaryServerInterceptor returns a gRPC interceptor that logs all unary RPCs.
pkg/collection/audit.go:68
↓ 1 callers
Method
UpdateMetadata
(ctx context.Context, namespace, name string, meta *pb.Collection)
pkg/collection/registry_store.go:23
↓ 1 callers
Function
ValidateProtoFileName
ValidateProtoFileName validates a proto file name (allows dots for .proto extension).
pkg/collection/validation.go:100
↓ 1 callers
Method
ValidateProtoSizeLimits
ValidateProtoSizeLimits validates that a FileDescriptorProto is within configured limits
pkg/registry/size_limits.go:31
↓ 1 callers
Method
ValidateServiceMethod
(ctx context.Context, namespace, serviceName, methodName string)
pkg/registry/helpers.go:14
↓ 1 callers
Method
ValidateServiceMethod
(ctx context.Context, namespace, serviceName, methodName string)
pkg/dispatch/dispatcher.go:27
↓ 1 callers
Function
ValidateServiceName
ValidateServiceName validates a service name (rejects slashes which break ID format).
pkg/collection/validation.go:85
↓ 1 callers
Method
With
(args ...any)
pkg/collection/system_logger.go:133
↓ 1 callers
Function
WithValidation
WithValidation returns gRPC server options that add registry validation interceptors for the specified namespace.
pkg/registry/helpers.go:63
↓ 1 callers
Function
addContentToTar
addContentToTar adds content from memory to a tar archive.
pkg/collection/transport.go:344
↓ 1 callers
Function
addFileToTar
addFileToTar adds a file from disk to a tar archive.
pkg/collection/transport.go:313
↓ 1 callers
Method
autoRoute
autoRoute automatically routes a request based on namespace
pkg/dispatch/dispatcher.go:274
↓ 1 callers
Function
boolToInt
(b bool)
pkg/collection/backup.go:1070
↓ 1 callers
Method
bootstrapAudit
bootstrapAudit creates the audit logging collection
pkg/bootstrap/system_collections.go:336
↓ 1 callers
Method
bootstrapCollectionRegistry
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 callers
Method
bootstrapConnections
bootstrapConnections creates the connection tracking collection
pkg/bootstrap/system_collections.go:265
↓ 1 callers
Method
bootstrapLogs
bootstrapLogs creates the system logs collection for structured logging
pkg/bootstrap/system_collections.go:408
↓ 1 callers
Method
bootstrapTypeRegistry
bootstrapTypeRegistry creates the type registry collection This will store registered proto types and enable request validation
pkg/bootstrap/system_collections.go:186
↓ 1 callers
Method
buildFTS
(ctx context.Context)
pkg/db/sqlite/store.go:662
↓ 1 callers
Method
buildHybrid
(ctx context.Context)
pkg/db/sqlite/store.go:596
↓ 1 callers
Method
buildJSONFilters
(filters map[string]collection.Filter)
pkg/db/sqlite/store.go:767
↓ 1 callers
Method
buildLabelFilters
(labelFilters map[string]string)
pkg/db/sqlite/store.go:791
↓ 1 callers
Method
buildScalar
(ctx context.Context)
pkg/db/sqlite/store.go:682
↓ 1 callers
Method
buildVector
(ctx context.Context)
pkg/db/sqlite/store.go:631
↓ 1 callers
Function
calculateMaxNestingDepth
calculateMaxNestingDepth calculates the maximum nesting depth in a proto file
pkg/registry/size_limits.go:71
↓ 1 callers
Function
calculateNestingDepthRecursive
calculateNestingDepthRecursive recursively calculates nesting depth for a message
pkg/registry/size_limits.go:83
↓ 1 callers
Function
checkMessage
checkMessage recursively checks string fields in a protobuf message
pkg/security/interceptor.go:44
↓ 1 callers
Function
checkMessageReflect
checkMessageReflect recursively checks all string fields including nested messages
pkg/security/interceptor.go:49
↓ 1 callers
Function
containsString
(s, substr string)
pkg/integration/type_validation_test.go:159
↓ 1 callers
Function
convertStructpbValue
convertStructpbValue converts a structpb.Value to a native Go type
pkg/collection/collection_server.go:85
↓ 1 callers
Function
countMessageTypesRecursive
countMessageTypesRecursive recursively counts message types including nested ones
pkg/registry/size_limits.go:62
↓ 1 callers
Method
countPreviousConnections
countPreviousConnections counts how many times a source has connected to us.
pkg/dispatch/connection_manager.go:562
↓ 1 callers
Method
countPreviousConnectionsToTarget
countPreviousConnectionsToTarget counts how many times we've connected to a target.
pkg/dispatch/connection_manager.go:580
↓ 1 callers
Function
countTotalMessageTypes
countTotalMessageTypes recursively counts all message types in a proto file
pkg/registry/size_limits.go:53
↓ 1 callers
Function
deserializeVector
(blob []byte)
pkg/db/sqlite/store.go:1005
↓ 1 callers
Method
dispatchToTarget
dispatchToTarget sends a request to a specific target collector
pkg/dispatch/dispatcher.go:213
↓ 1 callers
Function
ensureDir
(filePath string)
pkg/integration/type_validation_test.go:15
↓ 1 callers
Function
escapeJSONPathKey
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 callers
Function
extractTextFromJSON
(jsonText string)
pkg/db/sqlite/store.go:1093
↓ 1 callers
Method
findSharedNamespaces
findSharedNamespaces finds namespaces that are in both lists.
pkg/dispatch/connection_manager.go:598
↓ 1 callers
Function
generateBackupID
Helper functions
pkg/collection/backup.go:1064
↓ 1 callers
Method
generateVector
(ctx context.Context, jsonText string)
pkg/db/sqlite/store.go:962
↓ 1 callers
Function
getNamespaceHierarchy
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 callers
Function
isWellKnownType
isWellKnownType checks if a proto file is a well-known type that doesn't require registration
pkg/registry/registry.go:52
↓ 1 callers
Method
loadFromRegistry
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 callers
Function
newSQLiteStore
(ctx context.Context, config Config)
pkg/db/store.go:46
↓ 1 callers
Function
offsetToPageToken
(offset int)
pkg/collection/collection_server.go:370
↓ 1 callers
Function
pageTokenToOffset
(token string)
pkg/collection/collection_server.go:359
↓ 1 callers
Method
rebuildVectorIndex
(ctx context.Context, tx *sql.Tx)
pkg/db/sqlite/store.go:1034
← previous
next →
201–300 of 726, ranked by callers