Documentation
¶
Index ¶
Constants ¶
View Source
const SupportedModel = "1.0.0"
SupportedModel stores the model that is supported by this application daangn use 1.0.0 Ver
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionArgs ¶
type ConnectionArgs struct { DSN string MaxIdleConns int MaxOpenConns int MaxConnLifetimeSeconds int }
ConnectionArgs required to create a MySQL connection
type MySQLDB ¶
type MySQLDB struct {
// contains filtered or unexported fields
}
MySQLDB A database that does nothing
func (MySQLDB) CheckModel ¶
CheckModel implements Storer interface
type NullDB ¶
type NullDB struct{}
NullDB A database that does nothing
type PostgresDB ¶
type PostgresDB struct {
// contains filtered or unexported fields
}
PostgresDB A database that does nothing
func (PostgresDB) CheckModel ¶
func (d PostgresDB) CheckModel() error
CheckModel implements Storer interface
func (PostgresDB) Save ¶
func (d PostgresDB) Save(data *internal.AlertGroup) error
Save implements Storer interface
func (PostgresDB) String ¶
func (PostgresDB) String() string
Click to show internal directories.
Click to hide internal directories.