db

package
v0.0.0-...-163e02b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func NewDriver

func NewDriver(cfg *models.DBOpts, flags []dbModels.Flag) (*Driver, error)

func (*Driver) AttemptLogin

func (d *Driver) AttemptLogin(sqlQuery string) *sql.Row

func (*Driver) CapturedFlag

func (d *Driver) CapturedFlag(session *dbModels.Session, flag *dbModels.Flag) error

func (*Driver) CreateSession

func (d *Driver) CreateSession(session *dbModels.Session) error

func (*Driver) Initialise

func (d *Driver) Initialise() error

func (*Driver) IsCapturedFlag

func (d *Driver) IsCapturedFlag(flag *dbModels.Flag) (*dbModels.Flag, bool)

func (*Driver) SessionExists

func (d *Driver) SessionExists(session *dbModels.Session) (*dbModels.Session, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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