Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BQServiceWrapper ¶
type BQServiceWrapper[T any] struct { *microservice.BaseServer // contains filtered or unexported fields }
BQServiceWrapper wraps the ProcessingService for a common interface.
func NewBQServiceWrapper ¶
func NewBQServiceWrapper[T any]( ctx context.Context, cfg *Config, logger zerolog.Logger, transformer messagepipeline.MessageTransformer[T], ) (wrapper *BQServiceWrapper[T], err error)
NewBQServiceWrapper creates and configures a new generic BQServiceWrapper instance.
func (*BQServiceWrapper[T]) GetHTTPPort ¶
func (s *BQServiceWrapper[T]) GetHTTPPort() string
GetHTTPPort returns the HTTP port the service is listening on.
func (*BQServiceWrapper[T]) Mux ¶
func (s *BQServiceWrapper[T]) Mux() *http.ServeMux
Mux returns the HTTP ServeMux.
type Config ¶
type Config struct { microservice.BaseConfig ServiceName string DataflowName string ServiceDirectorURL string Consumer Consumer BigQueryConfig bqstore.BigQueryDatasetConfig ClientConnections map[string][]option.ClientOption BatchProcessing struct { // Embed the refactored config, which includes BatchSize, FlushInterval, and InsertTimeout bqstore.BatchInserterConfig NumWorkers int } }
Config holds all configuration for the BigQuery batch inserter application.
func LoadConfigDefaults ¶
LoadConfigDefaults initializes and loads configuration from defaults, flags, and environment variables.
Click to show internal directories.
Click to hide internal directories.