Documentation ¶
Overview ¶
Package conduit wires up everything under the hood of a Conduit instance including metrics, telemetry, logging, and server construction. It should only ever interact with the Orchestrator, never individual services. All of that responsibility should be left to the Orchestrator.
Index ¶
Constants ¶
const ( DBTypeBadger = "badger" DBTypePostgres = "postgres" DBTypeInMemory = "inmemory" )
Variables ¶
This section is empty.
Functions ¶
func Serve ¶ added in v0.7.2
func Serve(cfg Config)
Serve is the entrypoint for Conduit. It is a convenience function if you want to tweak the Conduit CLI and inject different default values or built-in plugins while retaining the same flags and exit behavior. You can adjust the default values by setting the corresponding field in Config. The default config can be retrieved with DefaultConfig. The config will be populated with values parsed from:
- command line flags (highest priority)
- environment variables
- config file (lowest priority)
Types ¶
type Config ¶
type Config struct { DB struct { Type string Badger struct { Path string } Postgres struct { ConnectionString string Table string } } HTTP struct { Address string } GRPC struct { Address string } Log struct { Level string Format string } Connectors struct { Path string } Pipelines struct { Path string ExitOnError bool } PluginDispenserFactories map[string]builtin.DispenserFactory ProcessorBuilderRegistry *processor.BuilderRegistry }
Config holds all configurable values for Conduit.
func DefaultConfig ¶ added in v0.7.2
func DefaultConfig() Config
type Runtime ¶
type Runtime struct { Config Config DB database.DB Orchestrator *orchestrator.Orchestrator // contains filtered or unexported fields }
Runtime sets up all services for serving and monitoring a Conduit instance.
func NewRuntime ¶
NewRuntime sets up a Runtime instance and primes it for start.