reader

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (r *Reader) IllustResponse(ctx context.Context, illustId uint64, forcefetch bool) (*models.IllustResponse, error)

func (*Reader) IllustsResponse

func (r *Reader) IllustsResponse(ctx context.Context, illustIds []uint64) (*models.IllustsResponse, error)

func (*Reader) RankIllustsResponse

func (r *Reader) RankIllustsResponse(ctx context.Context, mode string, date string, page int, content string, limit int) (*models.IllustsResponse, error)

func (*Reader) RecommendIllustsByIllustId

func (r *Reader) RecommendIllustsByIllustId(ctx context.Context, illustId uint64, k int) ([]models.Illust, error)

func (*Reader) SampleIllustsResponse

func (r *Reader) SampleIllustsResponse(ctx context.Context, quality int, limit int) (*models.IllustsResponse, error)

func (*Reader) SampleUsersResponse

func (r *Reader) SampleUsersResponse(ctx context.Context, limit int) (*models.UsersResponse, error)

func (*Reader) SearchIllustsByTagsResponse

func (r *Reader) SearchIllustsByTagsResponse(ctx context.Context, musttags []string, shouldtags []string, perfectmatch bool, page int, limit int, sortpopularity bool, sortdate bool) (*models.IllustsResponse, error)

func (*Reader) SearchIllustsResponse

func (r *Reader) SearchIllustsResponse(ctx context.Context, keyword string, page int, limit int, sortpopularity bool, sortdate bool) (*models.IllustsSearchResponse, error)

func (*Reader) SearchIllustsSuggestResponse

func (r *Reader) SearchIllustsSuggestResponse(ctx context.Context, keyword string) (*models.SearchSuggestResponse, error)

func (*Reader) SearchTagsSuggestResponse

func (r *Reader) SearchTagsSuggestResponse(ctx context.Context, keyword string) (*models.SearchSuggestTagsResponse, error)

func (*Reader) SearchUsersResponse

func (r *Reader) SearchUsersResponse(ctx context.Context, keyword string, page int, limit int) (*models.UsersSearchResponse, error)

func (*Reader) SearchUsersSuggestResponse

func (r *Reader) SearchUsersSuggestResponse(ctx context.Context, keyword string) (*models.SearchSuggestResponse, error)

func (*Reader) UgoiraResponse

func (r *Reader) UgoiraResponse(ctx context.Context, ugoiraId uint64, forcefetch bool) (*models.UgoiraResponse, error)

func (*Reader) UserDetailResponse

func (r *Reader) UserDetailResponse(ctx context.Context, userId uint64) (*models.UserResponse, error)

func (*Reader) UserIllustsResponse

func (r *Reader) UserIllustsResponse(ctx context.Context, userId uint64, page int64, limit int64) (*models.IllustsResponse, error)

Jump to

Keyboard shortcuts

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