Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) DeleteByID(ctx context.Context, id string, userID int64) (int, error)
- func (m *Mongo) Get(ctx context.Context, data entity.GetRequest) ([]entity.TierList, int, int, error)
- func (m *Mongo) GetByID(ctx context.Context, id string) (*entity.TierList, int, error)
- func (m *Mongo) UpsertByID(ctx context.Context, data entity.TierList) (*entity.TierList, 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 function for tier list mongodb.
func (*Mongo) DeleteByID ¶
DeleteByID to delete by id.
func (*Mongo) Get ¶
func (m *Mongo) Get(ctx context.Context, data entity.GetRequest) ([]entity.TierList, int, int, error)
Get to get list.
Click to show internal directories.
Click to hide internal directories.