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
}
Click to show internal directories.
Click to hide internal directories.