Documentation ¶
Index ¶
- type MonitorsRepository
- func (r *MonitorsRepository) Create(monitor *monitors_model.Monitor) error
- func (r *MonitorsRepository) GetAll() ([]*monitors_model.Monitor, error)
- func (r *MonitorsRepository) GetByID(id string) (*monitors_model.Monitor, error)
- func (r *MonitorsRepository) UpdateLastData(monitor *monitors_model.Monitor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonitorsRepository ¶
type MonitorsRepository struct {
// contains filtered or unexported fields
}
func NewMonitorsRepository ¶
func NewMonitorsRepository(db *mongo.Database) *MonitorsRepository
func (*MonitorsRepository) Create ¶
func (r *MonitorsRepository) Create(monitor *monitors_model.Monitor) error
func (*MonitorsRepository) GetAll ¶
func (r *MonitorsRepository) GetAll() ([]*monitors_model.Monitor, error)
func (*MonitorsRepository) GetByID ¶
func (r *MonitorsRepository) GetByID(id string) (*monitors_model.Monitor, error)
func (*MonitorsRepository) UpdateLastData ¶
func (r *MonitorsRepository) UpdateLastData(monitor *monitors_model.Monitor) error
Click to show internal directories.
Click to hide internal directories.