1// Copyright (c) 2020 Shivaram Lingamneni
2// released under the MIT license
3
4package mysql
5
6import (
7	"time"
8)
9
10type Config struct {
11	// these are intended to be written directly into the config file:
12	Enabled         bool
13	Host            string
14	Port            int
15	SocketPath      string `yaml:"socket-path"`
16	User            string
17	Password        string
18	HistoryDatabase string `yaml:"history-database"`
19	Timeout         time.Duration
20	MaxConns        int           `yaml:"max-conns"`
21	ConnMaxLifetime time.Duration `yaml:"conn-max-lifetime"`
22
23	// XXX these are copied from elsewhere in the config:
24	ExpireTime           time.Duration
25	TrackAccountMessages bool
26}
27