Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) GetAllForTree(ctx context.Context) ([]entity.Vtuber, int, error)
- func (m *Mongo) GetAllIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) GetAllImages(ctx context.Context) ([]entity.Vtuber, int, error)
- func (m *Mongo) GetByID(ctx context.Context, id int64) (*entity.Vtuber, 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) GetAllForTree ¶ added in v0.2.0
GetAllForTree to get all data for tree.
func (*Mongo) GetAllImages ¶ added in v0.2.0
GetAllImages to get all images.
Click to show internal directories.
Click to hide internal directories.