httpingester

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceType = "http-ingester"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Enabled indicates whether the HTTP ingester is enabled.
	Enabled bool `yaml:"enabled" default:"false"`
	// Addr is the address to listen on for HTTP requests.
	Addr string `yaml:"addr" default:":8087"`
}

Config holds configuration for the HTTP ingester server. Note: The HTTP ingester reuses services.eventIngester config for auth, outputs, etc.

func (*Config) Validate

func (c *Config) Validate() error

type Ingester

type Ingester struct {
	// contains filtered or unexported fields
}

Ingester handles HTTP event ingestion.

func NewIngester

func NewIngester(
	ctx context.Context,
	log observability.ContextualLogger, conf *Config,
	eventIngesterConf *eventingester.Config,
	clockDrift *time.Duration,
	geoipProvider geoip.Provider,
	cache store.Cache,
) (*Ingester, error)

NewIngester creates a new HTTP event ingester. The eventIngesterConf is the shared event ingester configuration from services.eventIngester.

func (*Ingester) Name

func (i *Ingester) Name() string

Name returns the service name.

func (*Ingester) Start

func (i *Ingester) Start(ctx context.Context) error

Start starts the HTTP ingester server.

func (*Ingester) Stop

func (i *Ingester) Stop(ctx context.Context) error

Stop stops the HTTP ingester server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL