repository

package
v0.27.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetByID(ctx context.Context, id int64) (*entity.Vtuber, int, error)
	UpdateByID(ctx context.Context, id int64, data entity.Vtuber) (int, error)
	UpdateOverriddenFieldByID(ctx context.Context, id int64, data entity.OverriddenField) (int, error)
	DeleteByID(ctx context.Context, id int64) (int, error)
	IsOld(ctx context.Context, id int64) (bool, int, error)
	GetOldActiveIDs(ctx context.Context) ([]int64, int, error)
	GetOldRetiredIDs(ctx context.Context) ([]int64, int, error)
	GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Vtuber, int, int, error)
	GetAllIDs(ctx context.Context) ([]int64, int, error)
	GetAllImages(ctx context.Context, shuffle bool, limit int) ([]entity.Vtuber, int, error)
	GetAllForFamilyTree(ctx context.Context) ([]entity.Vtuber, int, error)
	GetAllForAgencyTree(ctx context.Context) ([]entity.Vtuber, int, error)
	GetCharacterDesigners(ctx context.Context) ([]string, int, error)
	GetCharacter2DModelers(ctx context.Context) ([]string, int, error)
	GetCharacter3DModelers(ctx context.Context) ([]string, int, error)
	GetVideos(ctx context.Context, data entity.GetVideosRequest) ([]entity.VtuberVideo, int, int, error)
	GetCount(ctx context.Context) (int, int, error)
	GetAverageActiveTime(ctx context.Context) (float64, int, error)
	GetStatusCount(ctx context.Context) (*entity.StatusCount, int, error)
	GetDebutRetireCountMonthly(ctx context.Context) ([]entity.DebutRetireCount, int, error)
	GetDebutRetireCountYearly(ctx context.Context) ([]entity.DebutRetireCount, int, error)
	GetModelCount(ctx context.Context) (*entity.ModelCount, int, error)
	GetInAgencyCount(ctx context.Context) (*entity.InAgencyCount, int, error)
	GetSubscriberCount(ctx context.Context, interval, max int) ([]entity.SubscriberCount, int, error)
	GetDesignerCount(ctx context.Context, top int) ([]entity.DesignerCount, int, error)
	Get2DModelerCount(ctx context.Context, top int) ([]entity.DesignerCount, int, error)
	Get3DModelerCount(ctx context.Context, top int) ([]entity.DesignerCount, int, error)
	GetAverageVideoCount(ctx context.Context) (float64, int, error)
	GetAverageVideoDuration(ctx context.Context) (float64, int, error)
	GetVideoCountByDate(ctx context.Context, hourly, daily bool) ([]entity.VideoCountByDate, int, error)
	GetVideoCount(ctx context.Context, top int) ([]entity.VideoCount, int, error)
	GetVideoDuration(ctx context.Context, top int) ([]entity.VideoDuration, int, error)
	GetBirthdayCount(ctx context.Context) ([]entity.BirthdayCount, int, error)
	GetAverageHeight(ctx context.Context) (float64, int, error)
	GetAverageWeight(ctx context.Context) (float64, int, error)
	GetLanguageCount(ctx context.Context) ([]entity.LanguageCount, int, error)
	GetBloodTypeCount(ctx context.Context, top int) ([]entity.BloodTypeCount, int, error)
	GetChannelTypeCount(ctx context.Context) ([]entity.ChannelTypeCount, int, error)
	GetGenderCount(ctx context.Context) ([]entity.GenderCount, int, error)
	GetZodiacCount(ctx context.Context) ([]entity.ZodiacCount, int, error)
}

Repository contains functions for vtuber domain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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