types

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleSuperUser = "super_user"
	RoleAdmin     = "admin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Change added in v0.10.0

type Change[T any] struct {
	Value   T
	Changed bool
}

type ChapterUserData

type ChapterUserData struct {
	IsMarked bool `json:"isMarked"`
}

type GetAuthMe added in v0.4.0

type GetAuthMe struct {
	Id       string `json:"id"`
	Username string `json:"username"`
	IsOwner  bool   `json:"isOwner"`
}

type GetChapterByIdUser added in v0.4.0

type GetChapterByIdUser struct {
	IsMarked bool `json:"isMarked"`
}

type GetLibraryStatus

type GetLibraryStatus struct {
	Syncing bool `json:"syncing"`
}

type GetSystemInfo added in v0.3.0

type GetSystemInfo struct {
	Version string `json:"version"`
}

type Images added in v0.10.0

type Images struct {
	Small  string `json:"small"`
	Medium string `json:"medium"`
	Large  string `json:"large"`
}

type PostAuthSignin added in v0.4.0

type PostAuthSignin struct {
	Token string `json:"token"`
}

type PostAuthSigninBody added in v0.4.0

type PostAuthSigninBody struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

TODO(patrik): Validate and transform

type PostAuthSignup added in v0.4.0

type PostAuthSignup struct {
	Id       string `json:"id"`
	Username string `json:"username"`
}

type PostAuthSignupBody added in v0.4.0

type PostAuthSignupBody struct {
	Username        string `json:"username"`
	Password        string `json:"password"`
	PasswordConfirm string `json:"passwordConfirm"`
}

TODO(patrik): Validate and transform

type PostSystemSetupBody added in v0.3.0

type PostSystemSetupBody struct {
	Username        string `json:"username"`
	Password        string `json:"password"`
	PasswordConfirm string `json:"passwordConfirm"`
}

TODO(patrik): Validate and transform

type PostUserMarkChaptersBody added in v0.4.0

type PostUserMarkChaptersBody struct {
	Chapters []string `json:"chapters"`
}

TODO(patrik): Validate and transform

type PostUserUnmarkChaptersBody added in v0.4.0

type PostUserUnmarkChaptersBody struct {
	Chapters []string `json:"chapters"`
}

TODO(patrik): Validate and transform

type PostUserUpdateBookmarkBody added in v0.4.0

type PostUserUpdateBookmarkBody struct {
	SerieId   string `json:"serieId"`
	ChapterId string `json:"chapterId"`
	Page      int    `json:"page"`
}

TODO(patrik): Validate and transform

type Serie

type Serie struct {
	Id            string `json:"id"`
	Name          string `json:"name"`
	CoverOriginal string `json:"coverOriginal"`
	CoverLarge    string `json:"coverLarge"`
	CoverMedium   string `json:"coverMedium"`
	CoverSmall    string `json:"coverSmall"`
	ChapterCount  int64  `json:"chapterCount"`
}

type WorkDir

type WorkDir string

func (WorkDir) ChapterDir added in v0.10.0

func (d WorkDir) ChapterDir(id string) string

func (WorkDir) ChaptersDir

func (d WorkDir) ChaptersDir() string

func (WorkDir) DatabaseFile

func (d WorkDir) DatabaseFile() string

func (WorkDir) ExportFile added in v0.10.0

func (d WorkDir) ExportFile() string

TODO(patrik): Remove

func (WorkDir) SerieDir added in v0.10.0

func (d WorkDir) SerieDir(id string) string

func (WorkDir) SeriesDir added in v0.10.0

func (d WorkDir) SeriesDir() string

func (WorkDir) SetupFile added in v0.10.0

func (d WorkDir) SetupFile() string

func (WorkDir) String

func (d WorkDir) String() string

func (WorkDir) Trash added in v0.10.0

func (d WorkDir) Trash() string

Jump to

Keyboard shortcuts

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