Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "postgres"
Type should match the package name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { DSN string `json:"dsn"` // Issue create statements for database schema Create bool `json:"create"` // Check files older than CheckExpiry will be // deleted on calls to Maintain(). If this is // the zero value, no old check files will be // deleted. CheckExpiry time.Duration `json:"check_expiry,omitempty"` }
Storage is a way to store checkup results in a PostgreSQL database.
func New ¶
func New(config json.RawMessage) (Storage, error)
New creates a new Storage instance based on json config
Click to show internal directories.
Click to hide internal directories.