dusk

package module
v0.0.0-...-77d68f8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

README

dusk

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDoesNotExist = errors.New("the item does not exist")
	ErrNoRows       = errors.New("no items found")
)

Functions

This section is empty.

Types

type Author

type Author struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

func (Author) Valid

func (a Author) Valid() validator.ErrMap

type Authors

type Authors []*Author

type Book

type Book struct {
	ID       int64       `json:"id" db:"id"`
	Title    string      `json:"title" db:"title"`
	Subtitle null.String `json:"subtitle,omitempty" db:"subtitle"`
	Author   []string    `json:"author"`

	ISBN   null.String `json:"isbn" db:"isbn"`
	ISBN13 null.String `json:"isbn13" db:"isbn13"`

	NumOfPages int `json:"num_of_pages" db:"numOfPages"`
	Progress   int `json:"progress" db:"progress"`
	Rating     int `json:"rating" db:"rating"`

	Publisher     null.String `json:"publisher" db:"publisher"`
	DatePublished null.Time   `json:"date_published" db:"datePublished"`

	Tag         []string    `json:"tag,omitempty" db:"tag"`
	Description null.String `json:"description,omitempty" db:"description"`
	Notes       null.String `json:"notes,omitempty" db:"notes"`

	// files
	Formats []string    `json:"formats,omitempty"`
	Cover   null.String `json:"cover,omitempty" db:"cover"`

	DateStarted   null.Time `json:"date_started" db:"dateStarted"`
	DateCompleted null.Time `json:"date_completed" db:"dateCompleted"`
	DateAdded     null.Time `json:"date_added" db:"dateAdded"`
}

func (Book) SafeTitle

func (b Book) SafeTitle() string

func (Book) Valid

func (b Book) Valid() validator.ErrMap

type Books

type Books []*Book

type Tag

type Tag struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

func (Tag) Valid

func (t Tag) Valid() validator.ErrMap

type Tags

type Tags []*Tag

Directories

Path Synopsis
integrations
ui
partials
templ: version: v0.2.513
templ: version: v0.2.513
partials/icons
templ: version: v0.2.513
templ: version: v0.2.513
shared
templ: version: v0.2.513
templ: version: v0.2.513
views
templ: version: v0.2.513
templ: version: v0.2.513

Jump to

Keyboard shortcuts

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