Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogsProviderAddr string `env:"LOGS_PROVIDER_ADDR, required, report"` LogsProviderTLS LogsProviderTLS MetricsAddr string `env:"METRICS_ADDR, report"` ShardID string `env:"SHARD_ID, report"` Drains Drains `env:"DRAINS, report"` }
type LogsProviderTLS ¶
type Nozzle ¶
type Nozzle struct {
// contains filtered or unexported fields
}
func NewNozzle ¶
func NewNozzle( sc StreamConnector, drains []Drain, shardID string, opts ...NozzleOption, ) *Nozzle
type NozzleOption ¶
type NozzleOption func(*Nozzle)
func WithConversionErrorCounter ¶
func WithConversionErrorCounter(c prometheus.Counter) NozzleOption
func WithDroppedCounter ¶
func WithDroppedCounter(c prometheus.Counter) NozzleOption
func WithEgressedCounter ¶
func WithEgressedCounter(c prometheus.Counter) NozzleOption
func WithIgnoredCounter ¶
func WithIgnoredCounter(c prometheus.Counter) NozzleOption
type StreamConnector ¶
type StreamConnector interface {
Stream(context.Context, *loggregator_v2.EgressBatchRequest) loggregator.EnvelopeStream
}
Click to show internal directories.
Click to hide internal directories.