Documentation ¶
Index ¶
- func CalcIllustPop(sta models.IllustStatistic) uint
- func Illust2IllustResponse(illust *models.Illust, user *models.User) *models.IllustResponse
- func Illust2IllustSearch(illustdb *models.Illust) *models.IllustSearch
- func IllustRaw2Illust(raw *models.IllustRaw) *models.Illust
- func Illusts2IllustsResponse(illusts []models.Illust, hasnext bool) *models.IllustsResponse
- func Illusts2IllustsSearchResponse(illusts []models.Illust, hasnext bool, scores []float64, highlights []*string) *models.IllustsSearchResponse
- func IsIllustBanned(raw *models.IllustRaw) bool
- func ParseImgTime(url string) time.Time
- func RankAggregateResult2IllustsResponses(rank []models.RankAggregateResult, hasnext bool) *models.IllustsResponse
- func RankIllusts2RankIllustsResponse(raw *models.RankIllustsRawResponse) *models.RankIllustsResponseMessage
- func Tags2TagResponses(tags []models.IllustTag) []models.IllustTagResponse
- func Ugoira2UgoiraResponse(ugoira *models.Ugoira) *models.UgoiraResponse
- func UgoiraRaw2Ugoira(raw *models.UgoiraRaw, id uint64) *models.Ugoira
- func User2UserResponse(user *models.User) *models.UserResponse
- func User2UserSearch(userdb *models.User) *models.UserSearch
- func UserIllusts2UserIllustsResponse(uid uint64, raw *models.UserIllustsRaw) *models.UserIllustsResponse
- func UserRaw2User(raw *models.UserRaw) *models.User
- func Users2UsersResponse(users []models.User, hasnext bool) *models.UsersResponse
- func Users2UsersSearchResponse(users []models.User, hasnext bool, scores []float64, highlights []*string) *models.UsersSearchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcIllustPop ¶
func CalcIllustPop(sta models.IllustStatistic) uint
func Illust2IllustResponse ¶
func Illust2IllustSearch ¶
func Illust2IllustSearch(illustdb *models.Illust) *models.IllustSearch
func Illusts2IllustsResponse ¶
func Illusts2IllustsResponse(illusts []models.Illust, hasnext bool) *models.IllustsResponse
func IsIllustBanned ¶ added in v1.0.11
func ParseImgTime ¶
func RankAggregateResult2IllustsResponses ¶
func RankAggregateResult2IllustsResponses(rank []models.RankAggregateResult, hasnext bool) *models.IllustsResponse
func RankIllusts2RankIllustsResponse ¶
func RankIllusts2RankIllustsResponse(raw *models.RankIllustsRawResponse) *models.RankIllustsResponseMessage
func Tags2TagResponses ¶
func Tags2TagResponses(tags []models.IllustTag) []models.IllustTagResponse
func Ugoira2UgoiraResponse ¶
func Ugoira2UgoiraResponse(ugoira *models.Ugoira) *models.UgoiraResponse
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 Users2UsersResponse ¶
func Users2UsersResponse(users []models.User, hasnext bool) *models.UsersResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.