Documentation ¶
Index ¶
- Constants
- func ToBytes(sizeRep string) (int64, error)
- type APIConfig
- type AccumulatorConfig
- type CircuitBreakerConfig
- type CompressionConfig
- type Config
- type DescompressionConfig
- type ExternalQueueConfig
- type FlowConfig
- type IngestionConfig
- type LogConfig
- type O11yConfig
- type ObjectStorageConfig
- type TracingConfig
Constants ¶
View Source
const DefaultOpenInterval = 100
View Source
const DefaultPort = 9199
View Source
const DefaultPreallocSlicePercentage = 2
View Source
const DefaultServiceNameOnO11y = "jiboia"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIConfig ¶
type APIConfig struct { Port int `yaml:"port"` PayloadSizeLimit string `yaml:"payload_size_limit"` }
func (APIConfig) PayloadSizeLimitInBytes ¶
type AccumulatorConfig ¶
type AccumulatorConfig struct { Size string `yaml:"size"` Separator string `yaml:"separator"` QueueCapacity int `yaml:"queue_capacity"` //TODO: validate and test CircuitBreaker CircuitBreakerConfig `yaml:"circuit_breaker"` }
func (AccumulatorConfig) SizeAsBytes ¶
func (accConf AccumulatorConfig) SizeAsBytes() (int64, error)
type CircuitBreakerConfig ¶
type CircuitBreakerConfig struct { Disable bool `yaml:"disable"` OpenInterval int64 `yaml:"open_interval_in_ms"` }
func (CircuitBreakerConfig) OpenIntervalAsDuration ¶
func (cbConf CircuitBreakerConfig) OpenIntervalAsDuration() time.Duration
type CompressionConfig ¶
type Config ¶
type Config struct { O11y O11yConfig `yaml:"o11y"` Version string `yaml:"version"` //FIXME: fill the version API APIConfig `yaml:"api"` Flows []FlowConfig `yaml:"flows"` DisableMaxProcs bool `yaml:"disable_max_procs"` }
type DescompressionConfig ¶
type DescompressionConfig struct { ActiveDecompressions []string `yaml:"active"` MaxConcurrency int `yaml:"max_concurrency"` InitialBufferSize string `yaml:"initial_buffer_size"` }
func (DescompressionConfig) InitialBufferSizeAsBytes ¶
func (decompConf DescompressionConfig) InitialBufferSizeAsBytes() (int64, error)
type ExternalQueueConfig ¶
type ExternalQueueConfig struct { Type string `yaml:"type"` Config interface{} `yaml:"config"` }
type FlowConfig ¶
type FlowConfig struct { Name string `yaml:"name"` QueueMaxSize int `yaml:"in_memory_queue_max_size"` MaxConcurrentUploads int `yaml:"max_concurrent_uploads"` PathPrefixCount int `yaml:"path_prefix_count"` Ingestion IngestionConfig `yaml:"ingestion"` Accumulator AccumulatorConfig `yaml:"accumulator"` ExternalQueue ExternalQueueConfig `yaml:"external_queue"` ObjectStorage ObjectStorageConfig `yaml:"object_storage"` Compression CompressionConfig `yaml:"compression"` }
type IngestionConfig ¶
type IngestionConfig struct { Token string `yaml:"token"` Decompression DescompressionConfig `yaml:"decompress"` CircuitBreaker CircuitBreakerConfig `yaml:"circuit_breaker"` }
type O11yConfig ¶
type O11yConfig struct { Tracing TracingConfig `yaml:"tracing"` Log LogConfig `yaml:"log"` }
type ObjectStorageConfig ¶
type ObjectStorageConfig struct { Type string `yaml:"type"` Config interface{} `yaml:"config"` }
type TracingConfig ¶
Click to show internal directories.
Click to hide internal directories.