sqlite

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string `json:"path"`
}

type Conn

type Conn struct {
	sqlite.Conn
}

func New

func New(config Config) (Conn, error)

func (Conn) Clean added in v0.0.2

func (c Conn) Clean() error

func (Conn) EnsureMigrations

func (c Conn) EnsureMigrations() error

func (Conn) GetProject

func (c Conn) GetProject(id string) (*data.Project, error)

func (Conn) GetUpdatedProjects

func (c Conn) GetUpdatedProjects(timestamp time.Time) ([]*data.Project, error)

func (Conn) Info

func (c Conn) Info() (any, error)

func (Conn) LoginLogCreate added in v0.0.2

func (c Conn) LoginLogCreate(opts data.LoginLogCreate) (data.LoginLogCreateResult, error)

func (Conn) LoginLogGet added in v0.0.2

func (c Conn) LoginLogGet(opts data.LoginLogGet) (data.LoginLogGetResult, error)

func (Conn) Ping

func (c Conn) Ping() error

func (Conn) TOTPCreate

func (c Conn) TOTPCreate(opts data.TOTPCreate) (data.TOTPCreateResult, error)

func (Conn) TOTPDelete

func (c Conn) TOTPDelete(opts data.TOTPGet) (int, error)

func (Conn) TOTPGet

func (c Conn) TOTPGet(opts data.TOTPGet) (data.TOTPGetResult, error)

func (Conn) TicketCreate added in v0.0.2

func (c Conn) TicketCreate(opts data.TicketCreate) (data.TicketCreateResult, error)

func (Conn) TicketDelete added in v0.0.2

func (c Conn) TicketDelete(opts data.TicketUse) (data.TicketUseResult, error)

func (Conn) TicketUse added in v0.0.2

func (c Conn) TicketUse(opts data.TicketUse) (data.TicketUseResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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