storage

package
v0.0.0-...-9f06ebb Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	FirstName  string
	MiddleName string
	LastName   string
	Nickname   string
	Homepage   string
	Email      string
	// contains filtered or unexported fields
}

func (Author) String

func (a Author) String() string

type Book

type Book struct {
	Title       string
	Annotation  string
	Date        string
	Publisher   string
	PublishCity string
	PublishYear int
	ISBN        string
	Lang        string
	SrcLang     string
	Authors     []Author
	Genres      []Genre
	Keywords    []Keyword
	File        FileInfo
	// contains filtered or unexported fields
}

func (*Book) AuthorsString

func (b *Book) AuthorsString() string

func (*Book) String

func (b *Book) String() string

type FileInfo

type FileInfo struct {
	RootPath     string
	RelativePath string
	Filename     string
	Filesize     int
}

func (FileInfo) String

func (fi FileInfo) String() string

type Genre

type Genre struct {
	Name string
	// contains filtered or unexported fields
}

func (Genre) String

func (g Genre) String() string

type Keyword

type Keyword struct {
	Name string
	// contains filtered or unexported fields
}

func (Keyword) String

func (k Keyword) String() string

type SQLiteStorage

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

func InitSqliteDb

func InitSqliteDb(dbFilePath string) (SQLiteStorage, error)

func (*SQLiteStorage) StoreBook

func (s *SQLiteStorage) StoreBook(b Book) error

type Storage

type Storage interface {
	StoreBook(b Book) error
}

Jump to

Keyboard shortcuts

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