storage

package
v0.0.0-...-29a79f3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddForm

func AddForm(db *sql.DB, fields []Field, url, method string) (formNo int64, err error)

func AddHistoryURL

func AddHistoryURL(db *sql.DB, url string) (err error)
func AddLink(db *sql.DB, url string) (linkNo int64, err error)

func GetFormID

func GetFormID(db *sql.DB, fields []Field, url, method string) (formNo int64, err error)

func GetHistoryUrl

func GetHistoryUrl(db *sql.DB, historyID int64) (url string, err error)
func GetLink(db *sql.DB, linkID int64) (url string, err error)

func GetLinkID

func GetLinkID(db *sql.DB, url string) (linkID int64, err error)

func OpenDB

func OpenDB(path string) (db *sql.DB, err error)

Types

type Field

type Field struct {
	Hidden bool
	Value  string
	Name   string
}

func GetForm

func GetForm(db *sql.DB, formID int64) (fields []Field, url string, post bool, err error)

type HistoryItem

type HistoryItem struct {
	ID  int64
	URL string
}

func GetHistory

func GetHistory(db *sql.DB) (history []HistoryItem, err error)

Jump to

Keyboard shortcuts

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