config

package
v0.0.0-...-1cac2b9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalSubmitter

func MarshalSubmitter(enc *jsontext.Encoder, src Submitter) error

func UnmarshalSubmitter

func UnmarshalSubmitter(dec *jsontext.Decoder, dst *Submitter) error

Types

type Config

type Config struct {
	RefreshInterval time.Duration        `json:"refresh_interval,format:units"`
	Submitter       Submitter            `json:"submitter"`
	Submitters      map[string]Submitter `json:"submitters"`
}

func (Config) MarshalJSON

func (c Config) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding/json Marshaler interface.

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the encoding/json Unmarshaler interface.

type FilterSubmitter

type FilterSubmitter struct {
	Filter    string    `json:"filter"`
	Submitter Submitter `json:"submitter"`
}

type GrouperSubmitter

type GrouperSubmitter struct {
	FlushInterval time.Duration `json:"flush_interval,format:units"`
	GroupBy       []string      `json:"group_by"`
	Submitter     Submitter     `json:"submitter"`
}

type HTTPSubmitter

type HTTPSubmitter struct {
	ProcessFields []string      `json:"process_fields"`
	Endpoint      string        `json:"endpoint"`
	FlushInterval time.Duration `json:"flush_interval,format:units"`
	MaxBatchSize  int           `json:"max_batch_size"`
}

type HydratorSubmitter

type HydratorSubmitter struct {
}

type MultiSubmitter

type MultiSubmitter []Submitter

type NamedSubmitter

type NamedSubmitter string

type NullSubmitter

type NullSubmitter struct {
}

type OTelSubmitter

type OTelSubmitter struct {
	ProcessFields []string      `json:"process_fields"`
	Endpoint      string        `json:"endpoint"`
	FlushInterval time.Duration `json:"flush_interval,format:units"`
	MaxBatchSize  int           `json:"max_batch_size"`
}

type PrometheusSubmitter

type PrometheusSubmitter struct {
	Namespace string    `json:"namespace"`
	Buckets   []float64 `json:"buckets"`
}

type Submitter

type Submitter interface {
	// contains filtered or unexported methods
}

type TraceBufferSubmitter

type TraceBufferSubmitter struct {
	BufferSize int    `json:"buffer_size"`
	Filter     string `json:"filter"`
}

Jump to

Keyboard shortcuts

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