Documentation ¶
Index ¶
- type Reader
- func (r *Reader) IllustResponse(illustId uint64, forcefetch bool) (*models.IllustResponse, error)
- func (r *Reader) IllustsResponse(illustIds []uint64) (*models.IllustsResponse, error)
- func (r *Reader) RankIllustsResponse(mode string, date string, page int, content string, limit int) (*models.IllustsResponse, error)
- func (r *Reader) RecommendIllustsByIllustId(illustId uint64, k int) ([]models.Illust, error)
- func (r *Reader) SampleIllustsResponse(quality int, limit int) (*models.IllustsResponse, error)
- func (r *Reader) SampleUsersResponse(limit int) (*models.UsersResponse, error)
- func (r *Reader) SearchIllustsByTagsResponse(musttags []string, shouldtags []string, perfectmatch bool, page int, limit int, ...) (*models.IllustsResponse, error)
- func (r *Reader) SearchIllustsResponse(keyword string, page int, limit int, sortpopularity bool, sortdate bool) (*models.IllustsSearchResponse, error)
- func (r *Reader) SearchIllustsSuggestResponse(keyword string) (*models.SearchSuggestResponse, error)
- func (r *Reader) SearchTagsSuggestResponse(keyword string) (*models.SearchSuggestTagsResponse, error)
- func (r *Reader) SearchUsersResponse(keyword string, page int, limit int) (*models.UsersSearchResponse, error)
- func (r *Reader) SearchUsersSuggestResponse(keyword string) (*models.SearchSuggestResponse, error)
- func (r *Reader) UgoiraResponse(ugoiraId uint64, forcefetch bool) (*models.UgoiraResponse, error)
- func (r *Reader) UserDetailResponse(userId uint64) (*models.UserResponse, error)
- func (r *Reader) UserIllustsResponse(userId uint64, page int64, limit int64) (*models.IllustsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(dbops *operations.DatabaseOperations, mq models.MessageQueue, taskchaname string, retrys uint, tracer *tasktracer.TaskTracer) *Reader
func (*Reader) IllustResponse ¶
func (*Reader) IllustsResponse ¶
func (r *Reader) IllustsResponse(illustIds []uint64) (*models.IllustsResponse, error)
func (*Reader) RankIllustsResponse ¶
func (*Reader) RecommendIllustsByIllustId ¶
func (*Reader) SampleIllustsResponse ¶
func (*Reader) SampleUsersResponse ¶
func (r *Reader) SampleUsersResponse(limit int) (*models.UsersResponse, error)
func (*Reader) SearchIllustsByTagsResponse ¶
func (*Reader) SearchIllustsResponse ¶
func (*Reader) SearchIllustsSuggestResponse ¶
func (r *Reader) SearchIllustsSuggestResponse(keyword string) (*models.SearchSuggestResponse, error)
func (*Reader) SearchTagsSuggestResponse ¶
func (r *Reader) SearchTagsSuggestResponse(keyword string) (*models.SearchSuggestTagsResponse, error)
func (*Reader) SearchUsersResponse ¶
func (*Reader) SearchUsersSuggestResponse ¶
func (r *Reader) SearchUsersSuggestResponse(keyword string) (*models.SearchSuggestResponse, error)
func (*Reader) UgoiraResponse ¶
func (*Reader) UserDetailResponse ¶
func (r *Reader) UserDetailResponse(userId uint64) (*models.UserResponse, error)
func (*Reader) UserIllustsResponse ¶
Click to show internal directories.
Click to hide internal directories.