Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Agency, int, int, error)
- func (m *Mongo) GetAllIDs(ctx context.Context) ([]int64, int, error)
- func (m *Mongo) GetByID(ctx context.Context, id int64) (*entity.Agency, int, error)
- func (m *Mongo) GetCount(ctx context.Context) (int, 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.Agency) (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 agency mongodb.
func (*Mongo) GetAll ¶
func (m *Mongo) GetAll(ctx context.Context, data entity.GetAllRequest) ([]entity.Agency, int, int, error)
GetAll to get all.
Click to show internal directories.
Click to hide internal directories.