configuration

package
v0.3.70-rc-426cbcd Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobServiceConfiguration

type JobServiceConfiguration struct {
	HttpPort    uint16
	GrpcPort    uint16
	MetricsPort uint16

	Grpc     grpcconfig.GrpcConfig
	GrpcPool grpcconfig.GrpcPoolConfig
	// Connection details that we obtain from client
	ApiConnection client.ApiConnectionDetails
	// Configurable value that translates to number of seconds
	// This is the amount of time since the last job in job-set has been updated.
	SubscribeJobSetTime int64
	// Purge jobSets if not updated in this number of seconds
	PurgeJobSetTime int64
	// Type of database used - must be either 'postgres' or 'sqlite'
	DatabaseType string
	// Absolute or relative path for sqlite database and must include the db name
	// This field is only read when DatabaseType is 'sqlite'
	DatabasePath string

	// Configuration details for using a Postgres database; this field is
	// ignored if the DatabaseType above is not 'postgres'
	PostgresConfig PostgresConfig
}

type PostgresConfig added in v0.3.63

type PostgresConfig struct {
	PoolMaxOpenConns    int
	PoolMaxIdleConns    int
	PoolMaxConnLifetime time.Duration
	Connection          map[string]string
}

Jump to

Keyboard shortcuts

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