sqlite3

package
v1.0.1-0...-fe66d50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "sqlite3"

Type should match the package name

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// DSN is the sqlite3 DB where check results will be stored.
	DSN string `json:"dsn,omitempty"`

	// 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 SQLite database.

func New

func New(_ json.RawMessage) (Storage, error)

New creates a new Storage instance based on json config

func (Storage) Store

func (Storage) Store(results []types.Result) error

func (Storage) Type

func (Storage) Type() string

Type returns the storage driver package name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL