Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(db *gorm.DB) domain.AlertService
NewService returns repository struct
Types ¶
type AlertRepository ¶
type MockAlertRepository ¶
MockAlertRepository is an autogenerated mock type for the AlertRepository type
func (*MockAlertRepository) Create ¶
func (_m *MockAlertRepository) Create(_a0 *Alert) (*Alert, error)
Create provides a mock function with given fields: _a0
func (*MockAlertRepository) Get ¶
Get provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*MockAlertRepository) Migrate ¶
func (_m *MockAlertRepository) Migrate() error
Migrate provides a mock function with given fields:
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository talks to the store to read or insert data
func NewRepository ¶
func NewRepository(db *gorm.DB) *Repository
NewRepository returns repository struct
func (Repository) Get ¶
func (r Repository) Get(resourceName string, providerId, startTime, endTime uint64) ([]Alert, error)
func (Repository) Migrate ¶
func (r Repository) Migrate() error
Click to show internal directories.
Click to hide internal directories.