config

package
v0.0.0-...-76f4a85 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Project ID daa
	ProjectID string
	// Pub/Sub topic name
	Topic string
	// Debug flag for log prints - default level is Info.
	Debug bool
	// HTTP port.
	Port int
	//  Prometheus port.
	MetricsPort int
	// Maximum size of a single batch.
	PubsubMaxBatch int
	// Number of pools that listen for events from users
	PubSubAggrigators int
	// Max time to pass in seconds before publishing.
	PubsubMaxPublishDelay time.Duration
	// The default maximum amount of goroutines for publishing.
	MaxPubSubGoroutinesAmount int
	// The default maximum idle duration of a goroutine.
	MaxPubSubGoroutineIdleDuration time.Duration
}

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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