Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypePostgres = "postgres" TypeTimescale = "timescale" DefaultPostgresPort = 5432 DefaultTimescalePort = 5432 DefaultMaxConn = 5000 )
Variables ¶
View Source
var ErrConfigRead = errors.New("failed to read/write config")
View Source
var POSTGRES string
View Source
var TIMESCALE string
Functions ¶
Types ¶
type Config ¶
type Config struct { Port int Postgres Postgres Timescale Postgres Factory FactoryConfig Pipe PipeConfig }
type FactoryConfig ¶
type FactoryConfig struct { MaxLimit uint ErrorRate float64 MaxTry, IDSize, CookieSize int BackupPath string }
func DefaultFactory ¶
func DefaultFactory() FactoryConfig
type PipeConfig ¶
func DefaultPipe ¶
func DefaultPipe() PipeConfig
Click to show internal directories.
Click to hide internal directories.