Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/accretional/collector
/ types & classes
Types & classes
79 in github.com/accretional/collector
⨍
Functions
726
◇
Types & classes
79
Struct
ActiveConnection
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
Struct
AuditLogger
AuditLogger handles structured audit logging to the system/audit collection.
pkg/collection/audit.go:17
Struct
BackupManager
BackupManager manages backup operations for collections with automatic retention. Key Features: - Auto-generated paths: {DataDir}/.backup/{namespace}
pkg/collection/backup.go:37
Struct
BackupMetadataStore
BackupMetadataStore persists backup metadata to a SQLite database.
pkg/collection/backup.go:46
Struct
CloneManager
CloneManager handles collection cloning operations.
pkg/collection/clone.go:22
Struct
Collection
10MB Collection is the domain entity handling logic.
pkg/collection/collection.go:17
Struct
CollectionMetadata
CollectionMetadata holds collection information with its storage path.
pkg/collection/registry_store.go:10
FuncType
CollectionOption
CollectionOption is a functional option for Collection construction
pkg/collection/collection.go:25
Struct
CollectionRegistryStore
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
Interface
CollectionRepo
CollectionRepo defines the interface for a collection repository.
pkg/collection/interfaces.go:20
Struct
CollectionRepoService
CollectionRepoService provides a persistent implementation of the CollectionRepo interface. It uses a Store (like SqliteStore) for the underlying data
pkg/collection/service.go:15
Struct
CollectionServer
pkg/collection/collection_server.go:17
Struct
Combinator
Combinator handles merging multiple Collections.
pkg/collection/combination.go:9
Struct
Config
Config holds server configuration options. Note: The "system" namespace is reserved for internal collections: - system/collections - Collection metad
pkg/server/server.go:40
Struct
Config
pkg/db/store.go:18
Struct
ConnectionManager
ConnectionManager manages connections between collectors. It maintains both persisted connection records (in system/connections collection) and active
pkg/dispatch/connection_manager.go:33
TypeAlias
DBType
pkg/db/store.go:11
Struct
DefaultCollectionRepo
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
Struct
DeterministicEmbedder
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
Struct
Dispatcher
Dispatcher implements the CollectiveDispatcher service
pkg/dispatch/dispatcher.go:31
Interface
Embedder
Embedder defines how to turn text into vectors.
pkg/collection/semantics.go:8
Struct
ErrOperationInProgress
ErrOperationInProgress is returned when an operation is already in progress.
pkg/collection/operation_state.go:34
Struct
Fetcher
Fetcher handles retrieving Collections from remote sources.
pkg/collection/fetch.go:16
Interface
FileSystem
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
Struct
FileSystem
FileSystem implements file operations using the local OS filesystem.
pkg/fs/local/filesystem.go:13
Struct
Filter
Filter represents a condition on a structured field.
pkg/collection/search.go:28
TypeAlias
FilterOperator
pkg/collection/search.go:33
Struct
GRPCRegistryValidator
GRPCRegistryValidator validates services via gRPC (recommended approach) This ensures proper service-to-service communication using the gRPC stack
pkg/registry/helpers.go:19
Struct
GrpcServer
GrpcServer wraps the gRPC server and implements the CollectionRepoServer.
pkg/collection/grpc_server.go:14
FuncType
JSONConverterFactory
JSONConverterFactory creates ProtoToJSONConverter based on collection type
pkg/collection/options.go:29
Interface
JSONConverterSetter
JSONConverterSetter is an optional interface that stores can implement to support setting a JSON converter for proto→JSON conversion.
pkg/collection/repo.go:47
TypeAlias
JSONConverterType
JSONConverterType specifies which type of JSON converter to use
pkg/collection/options.go:17
TypeAlias
Level
Level defines the log severity
pkg/logging/logger.go:4
Struct
LocalFileSystem
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
Interface
Logger
Logger defines a structured logging interface
pkg/logging/logger.go:29
Interface
MessageTypeValidator
MessageTypeValidator validates that message types are registered before use. This interface allows dependency injection without circular dependencies.
pkg/collection/type_validator.go:11
Struct
MockCollectionRepo
MockCollectionRepo for testing
pkg/collection/backup_test.go:545
Struct
MockValidator
MockValidator implements RegistryValidator for testing
pkg/dispatch/dispatcher_registry_test.go:12
Struct
NoOpLogger
NoOpLogger is a logger that does nothing
pkg/logging/logger.go:38
Struct
OperationState
OperationState represents an in-progress operation on a collection. Stored in Collection metadata using reserved label "_operation".
pkg/collection/operation_state.go:14
Struct
Options
Options configures the feature set for a Collection.
pkg/collection/options.go:4
Struct
PathConfig
PathConfig provides centralized path management for collection storage. It allows configurable base directory and consistent path generation.
pkg/collection/paths.go:12
FuncType
ProgressReporter
FetchWithProgress fetches a collection with progress reporting.
pkg/collection/fetch.go:100
FuncType
ProtoLookupFunc
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
Struct
ProtoSizeLimits
ProtoSizeLimits defines configurable limits for proto registration to prevent DoS attacks
pkg/registry/size_limits.go:10
FuncType
ProtoToJSONConverter
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
Struct
RegistryServer
pkg/registry/registry.go:23
Struct
RegistryServerValidator
RegistryServerValidator wraps a RegistryServer to provide validation
pkg/registry/helpers.go:36
Interface
RegistryStore
RegistryStore defines the interface for persisting collection metadata. The production implementation is CollectionRegistryStore (see collection_regis
pkg/collection/registry_store.go:18
Interface
RegistryValidator
RegistryValidator is an interface for validating services against a registry
pkg/dispatch/dispatcher.go:26
Struct
SearchQuery
SearchQuery is the generic query structure passed to the Store.
pkg/collection/search.go:8
Struct
SearchResult
SearchResult represents a search hit with relevance info.
pkg/collection/search.go:21
Struct
SemanticEngine
SemanticEngine defines intelligence operations on a Collection.
pkg/collection/semantics.go:13
Struct
Server
Server represents a fully configured Collector server with all services.
pkg/server/server.go:64
FuncType
ServiceHandler
ServiceHandler is a function that handles a service method invocation
pkg/dispatch/dispatcher.go:23
Interface
ServiceMethodValidator
ServiceMethodValidator is an interface for validating service methods Can be implemented by gRPC clients or other validation mechanisms
pkg/registry/helpers.go:13
Struct
SqliteTransport
SqliteTransport implements collection transport using SQLite operations.
pkg/collection/transport.go:26
Interface
Store
Store defines the interface for the underlying database. Implementations (like SQLite) handle the specifics of query translation and storage.
pkg/collection/repo.go:14
Struct
Store
pkg/db/sqlite/store.go:22
FuncType
StoreFactory
StoreFactory is a function that creates a new Store instance at the given path with the given options.
pkg/collection/repo.go:52
Struct
SystemCollections
SystemCollections holds references to all system collections
pkg/bootstrap/system_collections.go:20
Struct
SystemLogger
SystemLogger implements logging.Logger and writes to a collection
pkg/collection/system_logger.go:17
Interface
Transport
Transport defines how a Collection is moved between collectors.
pkg/collection/transport.go:14
Interface
TypeRegistrar
TypeRegistrar is an interface for registering message types. This allows optional integration with the type registry without circular dependencies.
pkg/registry/registry.go:19
Struct
TypeRegistry
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
Struct
ValidationError
pkg/dispatch/dispatcher_registry_test.go:48
Struct
WAFRule
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
Struct
embedderError
pkg/collection/semantics_test.go:314
Struct
errorEmbedder
pkg/collection/semantics_test.go:308
Interface
execContext
pkg/db/sqlite/store.go:32
Struct
grpcRegistryClientValidator
grpcRegistryClientValidator wraps a gRPC Registry client to implement ServiceMethodValidator
pkg/server/server.go:473
Struct
mockCollectionRepo
Mock CollectionRepo for testing
pkg/registry/integration_test.go:262
Struct
mockCollectionRepo
mockCollectionRepo is a minimal mock for testing
pkg/collection/clone_simple_test.go:156
Struct
mockServerStream
Mock ServerStream for testing
pkg/registry/interceptor_test.go:231
Struct
mockStore
mockStore is a minimal Store implementation for testing
pkg/collection/backup_test.go:47
Struct
progressReader
progressReader wraps an io.Reader and reports progress.
pkg/collection/fetch.go:132
Struct
realTestServer
realTestServer is for tests that need actual network connections
pkg/dispatch/dispatcher_test.go:355
Struct
searchQueryBuilder
pkg/db/sqlite/store.go:586
Struct
testServer
testServer wraps a dispatcher with a gRPC server
pkg/dispatch/dispatcher_test.go:22