model

package
v0.0.0-...-3cb6ec2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb(path string) (*sql.DB, error)

Types

type Bookmark

type Bookmark struct {
	Id       int64
	Url      *XesamUrl
	Hash     string
	Position int64
	Length   int64
	Mtime    int64
	Finished int
	Inode    string
	Created  int64
	Updated  int64
	// contains filtered or unexported fields
}

func GetBookmark

func GetBookmark(db *sql.DB, url *XesamUrl) (*Bookmark, error)

func GetMostRecentBookmark

func GetMostRecentBookmark(db *sql.DB) (*Bookmark, error)

func ListBookmarks

func ListBookmarks(db *sql.DB) ([]Bookmark, error)

func (*Bookmark) Delete

func (bm *Bookmark) Delete(db *sql.DB) error

func (*Bookmark) Exists

func (bm *Bookmark) Exists() bool

func (*Bookmark) Save

func (bm *Bookmark) Save(db *sql.DB) error

type FileError

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

func (*FileError) Error

func (e *FileError) Error() string

type XesamUrl

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

func ParseXesamUrl

func ParseXesamUrl(xesamUrl string) (*XesamUrl, error)

func (*XesamUrl) Scheme

func (xesamUrl *XesamUrl) Scheme() string

func (*XesamUrl) ShellQuoted

func (xesamUrl *XesamUrl) ShellQuoted() string

func (*XesamUrl) String

func (xesamUrl *XesamUrl) String() string

func (*XesamUrl) UnescapedPath

func (xesamUrl *XesamUrl) UnescapedPath() string

Jump to

Keyboard shortcuts

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