repository

package
v0.11.15 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 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 {
	Get(ctx context.Context, data entity.GetRequest) ([]*entity.Anime, int, int, error)
	GetByID(ctx context.Context, id int64) (*entity.Anime, int, error)
	GetByIDs(ctx context.Context, ids []int64) ([]*entity.Anime, int, error)
	GetHistories(ctx context.Context, data entity.GetHistoriesRequest) ([]entity.History, int, error)
	Update(ctx context.Context, data entity.Anime) (int, error)
	GetRelatedByIDs(ctx context.Context, ids []int64) ([]*entity.AnimeRelated, int, error)
	DeleteByID(ctx context.Context, id int64) (int, error)

	IsOld(ctx context.Context, id int64) (bool, int, error)
	GetMaxID(ctx context.Context) (int64, int, error)
	GetIDs(ctx context.Context) ([]int64, int, error)
	GetOldFinishedIDs(ctx context.Context) ([]int64, int, error)
	GetOldReleasingIDs(ctx context.Context) ([]int64, int, error)
	GetOldNotYetIDs(ctx context.Context) ([]int64, int, error)
}

Repository contains functions for anime domain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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