Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Vtuber, int, int, error)
- func (m *Mongo) GetAllForAgencyTree(ctx context.Context) ([]entity.Vtuber, int, error)
- func (m *Mongo) GetAllForFamilyTree(ctx context.Context) ([]entity.Vtuber, int, error)
- func (m *Mongo) GetAllIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) GetAllImages(ctx context.Context, _ bool, _ int) ([]entity.Vtuber, int, error)
- func (m *Mongo) GetByID(ctx context.Context, id int64) (*entity.Vtuber, int, error)
- func (m *Mongo) GetCharacter2DModelers(ctx context.Context) ([]string, int, error)
- func (m *Mongo) GetCharacter3DModelers(ctx context.Context) ([]string, int, error)
- func (m *Mongo) GetCharacterDesigners(ctx context.Context) ([]string, int, error)
- func (m *Mongo) GetOldIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) IsOld(ctx context.Context, id int64) (bool, int, error)
- func (m *Mongo) UpdateByID(ctx context.Context, id int64, data entity.Vtuber) (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 vtuber mongodb.
func (*Mongo) GetAll ¶ added in v0.5.0
func (m *Mongo) GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Vtuber, int, int, error)
GetAll to get all data.
func (*Mongo) GetAllForAgencyTree ¶ added in v0.4.0
GetAllForAgencyTree to get all data for agency tree.
func (*Mongo) GetAllForFamilyTree ¶ added in v0.4.0
GetAllForFamilyTree to get all data for tree.
func (*Mongo) GetAllImages ¶ added in v0.2.0
GetAllImages to get all images.
func (*Mongo) GetCharacter2DModelers ¶ added in v0.6.0
GetCharacter2DModelers to get 2d modelers.
func (*Mongo) GetCharacter3DModelers ¶ added in v0.6.0
GetCharacter3DModelers to get 3d modelers.
func (*Mongo) GetCharacterDesigners ¶ added in v0.6.0
GetCharacterDesigners to get character designers.
Click to show internal directories.
Click to hide internal directories.