Documentation ¶
Index ¶
- type Reader
- func (r *Reader) IllustResponse(ctx context.Context, illustId uint64, forcefetch bool) (*models.IllustResponse, error)
- func (r *Reader) IllustsResponse(ctx context.Context, illustIds []uint64) (*models.IllustsResponse, error)
- func (r *Reader) RankIllustsResponse(ctx context.Context, mode string, date string, page int, content string, ...) (*models.IllustsResponse, error)
- func (r *Reader) RecommendIllustsByIllustId(ctx context.Context, illustId uint64, k int) ([]models.Illust, error)
- func (r *Reader) SampleIllustsResponse(ctx context.Context, quality int, limit int) (*models.IllustsResponse, error)
- func (r *Reader) SampleUsersResponse(ctx context.Context, limit int) (*models.UsersResponse, error)
- func (r *Reader) SearchIllustsByTagsResponse(ctx context.Context, musttags []string, shouldtags []string, perfectmatch bool, ...) (*models.IllustsResponse, error)
- func (r *Reader) SearchIllustsResponse(ctx context.Context, keyword string, page int, limit int, sortpopularity bool, ...) (*models.IllustsSearchResponse, error)
- func (r *Reader) SearchIllustsSuggestResponse(ctx context.Context, keyword string) (*models.SearchSuggestResponse, error)
- func (r *Reader) SearchTagsSuggestResponse(ctx context.Context, keyword string) (*models.SearchSuggestTagsResponse, error)
- func (r *Reader) SearchUsersResponse(ctx context.Context, keyword string, page int, limit int) (*models.UsersSearchResponse, error)
- func (r *Reader) SearchUsersSuggestResponse(ctx context.Context, keyword string) (*models.SearchSuggestResponse, error)
- func (r *Reader) UgoiraResponse(ctx context.Context, ugoiraId uint64, forcefetch bool) (*models.UgoiraResponse, error)
- func (r *Reader) UserDetailResponse(ctx context.Context, userId uint64) (*models.UserResponse, error)
- func (r *Reader) UserIllustsResponse(ctx context.Context, 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 (*Reader) RankIllustsResponse ¶
func (*Reader) RecommendIllustsByIllustId ¶
func (*Reader) SampleIllustsResponse ¶
func (*Reader) SampleUsersResponse ¶
func (*Reader) SearchIllustsByTagsResponse ¶
func (*Reader) SearchIllustsResponse ¶
func (*Reader) SearchIllustsSuggestResponse ¶
func (*Reader) SearchTagsSuggestResponse ¶
func (*Reader) SearchUsersResponse ¶
func (*Reader) SearchUsersSuggestResponse ¶
func (*Reader) UgoiraResponse ¶
func (*Reader) UserDetailResponse ¶
Click to show internal directories.
Click to hide internal directories.