Documentation
¶
Index ¶
Constants ¶
View Source
const (
TimescaleDbBackendName = "timescaledb"
)
Variables ¶
This section is empty.
Functions ¶
func NewTimescaleDB ¶
Types ¶
type TimescaleDbConfig ¶
type TimescaleDbConfig struct {
Host string
Port string
DB string
User string
Password string
// Retention defines when audit traces will be thrown away, only settable on initial database usage
// If this needs to be changed over time, you need to do this manually. Defaults to '14 days'.
Retention string
// CompressionInterval defines after which period audit traces will be compressed, only settable on initial database usage.
// If this needs to be changed over time, you need to do this manually. Defaults to '7 days'.
CompressionInterval string
// ChunkInterval defines after which period audit traces will be stored in a new chunk table, only settable on initial database usage.
// If this needs to be changed over time, you need to do this manually. Defaults to '1 days'.
ChunkInterval string
MaxIdleConns *int
ConnMaxLifetime *time.Duration
MaxOpenConns *int
}
Click to show internal directories.
Click to hide internal directories.