db

package
v0.0.0-...-6c5db76 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB represents a database to store information about the captured attacks

func NewDB

func NewDB(url string) DB

NewDB creates a new DB

func (*DB) BeginTx

func (db *DB) BeginTx(f func(pgx.Tx) error) error

func (*DB) Start

func (db *DB) Start() error

Start connects to the DB

func (*DB) Stop

func (db *DB) Stop() error

Stop disconnects from the DB

Jump to

Keyboard shortcuts

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