convert

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcIllustPop

func CalcIllustPop(sta models.IllustStatistic) uint

func Illust2IllustResponse

func Illust2IllustResponse(illust *models.Illust, user *models.User) *models.IllustResponse

func Illust2IllustSearch

func Illust2IllustSearch(illustdb *models.Illust) *models.IllustSearch

func IllustRaw2Illust

func IllustRaw2Illust(raw *models.IllustRaw) *models.Illust

func Illusts2IllustsResponse

func Illusts2IllustsResponse(illusts []models.Illust, hasnext bool) *models.IllustsResponse

func Illusts2IllustsSearchResponse

func Illusts2IllustsSearchResponse(illusts []models.Illust, hasnext bool, scores []float64, highlights []*string) *models.IllustsSearchResponse

func IsIllustBanned added in v1.0.11

func IsIllustBanned(raw *models.IllustRaw) bool

func ParseImgTime

func ParseImgTime(url string) time.Time

func RankAggregateResult2IllustsResponses

func RankAggregateResult2IllustsResponses(rank []models.RankAggregateResult, hasnext bool) *models.IllustsResponse

func Tags2TagResponses

func Tags2TagResponses(tags []models.IllustTag) []models.IllustTagResponse

func Ugoira2UgoiraResponse

func Ugoira2UgoiraResponse(ugoira *models.Ugoira) *models.UgoiraResponse

func UgoiraRaw2Ugoira

func UgoiraRaw2Ugoira(raw *models.UgoiraRaw, id uint64) *models.Ugoira

func User2UserResponse

func User2UserResponse(user *models.User) *models.UserResponse

func User2UserSearch

func User2UserSearch(userdb *models.User) *models.UserSearch

func UserIllusts2UserIllustsResponse

func UserIllusts2UserIllustsResponse(uid uint64, raw *models.UserIllustsRaw) *models.UserIllustsResponse

func UserRaw2User

func UserRaw2User(raw *models.UserRaw) *models.User

func Users2UsersResponse

func Users2UsersResponse(users []models.User, hasnext bool) *models.UsersResponse

func Users2UsersSearchResponse

func Users2UsersSearchResponse(users []models.User, hasnext bool, scores []float64, highlights []*string) *models.UsersSearchResponse

Types

This section is empty.

Jump to

Keyboard shortcuts

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