Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) DeleteByID(ctx context.Context, id int64) (int, error)
- func (m *Mongo) GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Manga, int, int, error)
- func (m *Mongo) GetByID(ctx context.Context, id int64) (*entity.Manga, int, error)
- func (m *Mongo) GetIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) GetMaxID(ctx context.Context) (int64, int, error)
- func (m *Mongo) GetOldFinishedIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) GetOldNotYetIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) GetOldReleasingIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) IsOld(ctx context.Context, id int64) (bool, int, error)
- func (m *Mongo) Update(ctx context.Context, data entity.Manga) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
Mongo contains functions for manga mongodb.
func (*Mongo) DeleteByID ¶
DeleteByID to delete manga by id.
func (*Mongo) GetAll ¶ added in v0.2.0
func (m *Mongo) GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Manga, int, int, error)
GetAll to get all data.
func (*Mongo) GetOldFinishedIDs ¶
GetOldFinishedIDs to get old finished manga id.
func (*Mongo) GetOldNotYetIDs ¶
GetOldNotYetIDs to get not yet released manga id.
func (*Mongo) GetOldReleasingIDs ¶
GetOldReleasingIDs to get old releasing manga id.
Click to show internal directories.
Click to hide internal directories.