models

package
v0.0.0-...-cd4b4ca Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	gorm.Model
	Title   string
	Uri     string
	Read    bool
	MangaID uint
}

func (*Chapter) Create

func (c *Chapter) Create() *Chapter

func (*Chapter) Dirname

func (c *Chapter) Dirname() string

func (*Chapter) Manga

func (c *Chapter) Manga() *Manga

func (*Chapter) Save

func (c *Chapter) Save() *Chapter

func (Chapter) TableName

func (Chapter) TableName() string

type Manga

type Manga struct {
	gorm.Model
	Title          string
	Uri            string
	Authors        string
	Dlmode         string
	CurrentChapter int
	Updated        time.Time
	Provider       string
}

func (*Manga) Chapters

func (m *Manga) Chapters(params map[string]interface{}) []Chapter

func (*Manga) Create

func (m *Manga) Create() *Manga

func (*Manga) Delete

func (m *Manga) Delete()

func (*Manga) Dirname

func (m *Manga) Dirname() string

func (*Manga) Exists

func (m *Manga) Exists() *Manga

func (*Manga) Save

func (m *Manga) Save() *Manga

func (Manga) TableName

func (Manga) TableName() string

func (*Manga) ToReadable

func (m *Manga) ToReadable() string

func (*Manga) ToRow

func (m *Manga) ToRow() []string

type Tabler

type Tabler interface {
	TableName() string
}

Jump to

Keyboard shortcuts

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