MCPcopy Create free account

hub / github.com/accretional/collector / types & classes

Types & classes79 in github.com/accretional/collector

StructActiveConnection
ActiveConnection represents the runtime state of an active connection. This is kept in memory and contains resources that cannot be persisted (gRPC cl
pkg/dispatch/connection_manager.go:19
StructAuditLogger
AuditLogger handles structured audit logging to the system/audit collection.
pkg/collection/audit.go:17
StructBackupManager
BackupManager manages backup operations for collections with automatic retention. Key Features: - Auto-generated paths: {DataDir}/.backup/{namespace}
pkg/collection/backup.go:37
StructBackupMetadataStore
BackupMetadataStore persists backup metadata to a SQLite database.
pkg/collection/backup.go:46
StructCloneManager
CloneManager handles collection cloning operations.
pkg/collection/clone.go:22
StructCollection
10MB Collection is the domain entity handling logic.
pkg/collection/collection.go:17
StructCollectionMetadata
CollectionMetadata holds collection information with its storage path.
pkg/collection/registry_store.go:10
FuncTypeCollectionOption
CollectionOption is a functional option for Collection construction
pkg/collection/collection.go:25
StructCollectionRegistryStore
CollectionRegistryStore implements RegistryStore using a Collection. This allows the registry to be self-hosted in the "system/collections" collection
pkg/collection/collection_registry_store.go:14
InterfaceCollectionRepo
CollectionRepo defines the interface for a collection repository.
pkg/collection/interfaces.go:20
StructCollectionRepoService
CollectionRepoService provides a persistent implementation of the CollectionRepo interface. It uses a Store (like SqliteStore) for the underlying data
pkg/collection/service.go:15
StructCollectionServer
pkg/collection/collection_server.go:17
StructCombinator
Combinator handles merging multiple Collections.
pkg/collection/combination.go:9
StructConfig
Config holds server configuration options. Note: The "system" namespace is reserved for internal collections: - system/collections - Collection metad
pkg/server/server.go:40
StructConfig
pkg/db/store.go:18
StructConnectionManager
ConnectionManager manages connections between collectors. It maintains both persisted connection records (in system/connections collection) and active
pkg/dispatch/connection_manager.go:33
TypeAliasDBType
pkg/db/store.go:11
StructDefaultCollectionRepo
DefaultCollectionRepo is a facade that provides a simple interface for managing collections. It uses a CollectionRepoService and a Store to do the hea
pkg/collection/repo.go:56
StructDeterministicEmbedder
A lightweight, dependency-free embedder that produces stable, fixed-dimension vectors by hashing tokens. Intended for tests and local runs.
pkg/collection/deterministic_embedder.go:12
StructDispatcher
Dispatcher implements the CollectiveDispatcher service
pkg/dispatch/dispatcher.go:31
InterfaceEmbedder
Embedder defines how to turn text into vectors.
pkg/collection/semantics.go:8
StructErrOperationInProgress
ErrOperationInProgress is returned when an operation is already in progress.
pkg/collection/operation_state.go:34
StructFetcher
Fetcher handles retrieving Collections from remote sources.
pkg/collection/fetch.go:16
InterfaceFileSystem
FileSystem defines the interface for file operations associated with a collection. Allows swapping local disk for cloud storage or memory-based VFS.
pkg/collection/interfaces.go:11
StructFileSystem
FileSystem implements file operations using the local OS filesystem.
pkg/fs/local/filesystem.go:13
StructFilter
Filter represents a condition on a structured field.
pkg/collection/search.go:28
TypeAliasFilterOperator
pkg/collection/search.go:33
StructGRPCRegistryValidator
GRPCRegistryValidator validates services via gRPC (recommended approach) This ensures proper service-to-service communication using the gRPC stack
pkg/registry/helpers.go:19
StructGrpcServer
GrpcServer wraps the gRPC server and implements the CollectionRepoServer.
pkg/collection/grpc_server.go:14
FuncTypeJSONConverterFactory
JSONConverterFactory creates ProtoToJSONConverter based on collection type
pkg/collection/options.go:29
InterfaceJSONConverterSetter
JSONConverterSetter is an optional interface that stores can implement to support setting a JSON converter for proto→JSON conversion.
pkg/collection/repo.go:47
TypeAliasJSONConverterType
JSONConverterType specifies which type of JSON converter to use
pkg/collection/options.go:17
TypeAliasLevel
Level defines the log severity
pkg/logging/logger.go:4
StructLocalFileSystem
LocalFileSystem implements the FileSystem interface. This is a compatibility wrapper around pkg/fs/local.FileSystem. New code should use pkg/fs/local.
pkg/collection/local_fs.go:12
InterfaceLogger
Logger defines a structured logging interface
pkg/logging/logger.go:29
InterfaceMessageTypeValidator
MessageTypeValidator validates that message types are registered before use. This interface allows dependency injection without circular dependencies.
pkg/collection/type_validator.go:11
StructMockCollectionRepo
MockCollectionRepo for testing
pkg/collection/backup_test.go:545
StructMockValidator
MockValidator implements RegistryValidator for testing
pkg/dispatch/dispatcher_registry_test.go:12
StructNoOpLogger
NoOpLogger is a logger that does nothing
pkg/logging/logger.go:38
StructOperationState
OperationState represents an in-progress operation on a collection. Stored in Collection metadata using reserved label "_operation".
pkg/collection/operation_state.go:14
StructOptions
Options configures the feature set for a Collection.
pkg/collection/options.go:4
StructPathConfig
PathConfig provides centralized path management for collection storage. It allows configurable base directory and consistent path generation.
pkg/collection/paths.go:12
FuncTypeProgressReporter
FetchWithProgress fetches a collection with progress reporting.
pkg/collection/fetch.go:100
FuncTypeProtoLookupFunc
ProtoLookupFunc looks up a FileDescriptorProto by namespace and message name. Returns the file descriptor and the message name, or an error if not fou
pkg/collection/json_converter.go:90
StructProtoSizeLimits
ProtoSizeLimits defines configurable limits for proto registration to prevent DoS attacks
pkg/registry/size_limits.go:10
FuncTypeProtoToJSONConverter
ProtoToJSONConverter is a function that converts binary protobuf data to JSON string. It should return a valid JSON representation of the protobuf mes
pkg/collection/options.go:14
StructRegistryServer
pkg/registry/registry.go:23
StructRegistryServerValidator
RegistryServerValidator wraps a RegistryServer to provide validation
pkg/registry/helpers.go:36
InterfaceRegistryStore
RegistryStore defines the interface for persisting collection metadata. The production implementation is CollectionRegistryStore (see collection_regis
pkg/collection/registry_store.go:18
InterfaceRegistryValidator
RegistryValidator is an interface for validating services against a registry
pkg/dispatch/dispatcher.go:26
StructSearchQuery
SearchQuery is the generic query structure passed to the Store.
pkg/collection/search.go:8
StructSearchResult
SearchResult represents a search hit with relevance info.
pkg/collection/search.go:21
StructSemanticEngine
SemanticEngine defines intelligence operations on a Collection.
pkg/collection/semantics.go:13
StructServer
Server represents a fully configured Collector server with all services.
pkg/server/server.go:64
FuncTypeServiceHandler
ServiceHandler is a function that handles a service method invocation
pkg/dispatch/dispatcher.go:23
InterfaceServiceMethodValidator
ServiceMethodValidator is an interface for validating service methods Can be implemented by gRPC clients or other validation mechanisms
pkg/registry/helpers.go:13
StructSqliteTransport
SqliteTransport implements collection transport using SQLite operations.
pkg/collection/transport.go:26
InterfaceStore
Store defines the interface for the underlying database. Implementations (like SQLite) handle the specifics of query translation and storage.
pkg/collection/repo.go:14
StructStore
pkg/db/sqlite/store.go:22
FuncTypeStoreFactory
StoreFactory is a function that creates a new Store instance at the given path with the given options.
pkg/collection/repo.go:52
StructSystemCollections
SystemCollections holds references to all system collections
pkg/bootstrap/system_collections.go:20
StructSystemLogger
SystemLogger implements logging.Logger and writes to a collection
pkg/collection/system_logger.go:17
InterfaceTransport
Transport defines how a Collection is moved between collectors.
pkg/collection/transport.go:14
InterfaceTypeRegistrar
TypeRegistrar is an interface for registering message types. This allows optional integration with the type registry without circular dependencies.
pkg/registry/registry.go:19
StructTypeRegistry
TypeRegistry provides type validation for collections It tracks all registered message types and validates that collections reference valid types
pkg/bootstrap/type_registry.go:19
StructValidationError
pkg/dispatch/dispatcher_registry_test.go:48
StructWAFRule
WAFRule defines a rule for the Web Application Firewall. This is an example/testing implementation to demonstrate gRPC interceptor patterns. Productio
pkg/security/interceptor.go:24
StructembedderError
pkg/collection/semantics_test.go:314
StructerrorEmbedder
pkg/collection/semantics_test.go:308
InterfaceexecContext
pkg/db/sqlite/store.go:32
StructgrpcRegistryClientValidator
grpcRegistryClientValidator wraps a gRPC Registry client to implement ServiceMethodValidator
pkg/server/server.go:473
StructmockCollectionRepo
Mock CollectionRepo for testing
pkg/registry/integration_test.go:262
StructmockCollectionRepo
mockCollectionRepo is a minimal mock for testing
pkg/collection/clone_simple_test.go:156
StructmockServerStream
Mock ServerStream for testing
pkg/registry/interceptor_test.go:231
StructmockStore
mockStore is a minimal Store implementation for testing
pkg/collection/backup_test.go:47
StructprogressReader
progressReader wraps an io.Reader and reports progress.
pkg/collection/fetch.go:132
StructrealTestServer
realTestServer is for tests that need actual network connections
pkg/dispatch/dispatcher_test.go:355
StructsearchQueryBuilder
pkg/db/sqlite/store.go:586
StructtestServer
testServer wraps a dispatcher with a gRPC server
pkg/dispatch/dispatcher_test.go:22