Discover Packages
github.com/svaloumas/valet
internal
config
package
Version:
v0.8.5
Opens a new window with list of versions in this module.
Published: Apr 30, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ConsumeParams struct {
Name string `yaml:"name"`
AutoACK bool `yaml:"auto_ack"`
Exclusive bool `yaml:"exclusive"`
NoLocal bool `yaml:"no_local"`
NoWait bool `yaml:"no_wait"`
}
type GRPC struct {
Port string `yaml:"port"`
}
type HTTP struct {
Port string `yaml:"port"`
}
type JobQueue struct {
Option string `yaml:"option"`
MemoryJobQueue MemoryJobQueue `yaml:"memory_job_queue"`
RabbitMQ RabbitMQ `yaml:"rabbitmq"`
Redis Redis `yaml:"redis"`
}
type MemoryJobQueue struct {
Capacity int `yaml:"capacity"`
}
type MySQL struct {
DSN string
CaPemFile string
ConnectionMaxLifetime int `yaml:"connection_max_lifetime"`
MaxIdleConnections int `yaml:"max_idle_connections"`
MaxOpenConnections int `yaml:"max_open_connections"`
}
type Postgres struct {
DSN string
ConnectionMaxLifetime int `yaml:"connection_max_lifetime"`
MaxIdleConnections int `yaml:"max_idle_connections"`
MaxOpenConnections int `yaml:"max_open_connections"`
}
type PublishParams struct {
Exchange string `yaml:"exchange"`
RoutingKey string `yaml:"routing_key"`
Mandatory bool `yaml:"mandatory"`
Immediate bool `yaml:"immediate"`
}
type QueueParams struct {
Name string `yaml:"name"`
Durable bool `yaml:"durable"`
DeletedWhenUnused bool `yaml:"deleted_when_unused"`
Exclusive bool `yaml:"exclusive"`
NoWait bool `yaml:"no_wait"`
}
type Redis struct {
URL string
KeyPrefix string `yaml:"key_prefix"`
PoolSize int `yaml:"pool_size"`
MinIdleConns int `yaml:"min_idle_conns"`
}
type Repository struct {
Option string `yaml:"option"`
MySQL MySQL `yaml:"mysql"`
Postgres Postgres `yaml:"postgres"`
Redis Redis `yaml:"redis"`
}
type Scheduler struct {
RepositoryPollingInterval int `yaml:"repository_polling_interval"`
JobQueuePollingInterval int `yaml:"job_queue_polling_interval"`
}
type Server struct {
Protocol string `yaml:"protocol"`
HTTP HTTP `yaml:"http"`
GRPC GRPC `yaml:"grpc"`
}
type WorkerPool struct {
Workers int `yaml:"workers"`
QueueCapacity int `yaml:"queue_capacity"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.