subject

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0, AGPL-3.0-only Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDao

func ConvertDao(s *dao.Subject) (model.Subject, error)

func ParseTags added in v0.33.14

func ParseTags(b []byte) ([]model.Tag, error)

Types

type BrowseFilter added in v0.34.0

type BrowseFilter struct {
	NSFW     null.Bool
	Type     uint8
	Category null.Uint16
	Series   null.Bool
	Platform null.String
	Sort     null.String
	Year     null.Int32
	Month    null.Int8
}

func (BrowseFilter) Hash added in v0.34.0

func (f BrowseFilter) Hash() (string, error)

type CachedRepo added in v0.30.15

type CachedRepo interface {
	// contains filtered or unexported methods
}

func NewCachedRepo added in v0.30.15

func NewCachedRepo(c cache.RedisCache, r Repo, log *zap.Logger) CachedRepo

type Filter added in v0.27.4

type Filter struct {
	NSFW null.Bool
}

type Repo added in v0.27.4

type Repo interface {
	// contains filtered or unexported methods
}

func NewMysqlRepo

func NewMysqlRepo(q *query.Query, log *zap.Logger) (Repo, error)

type Tag added in v0.21.1

type Tag struct {
	Name  *string `php:"tag_name"`
	Count int     `php:"result,string"`
}

Jump to

Keyboard shortcuts

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