Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(db *gorm.DB) domain.AlertHistoryService
NewService returns repository struct
Types ¶
type AlertHistoryRepository ¶
type AlertHistoryRepositoryMock ¶
AlertHistoryRepositoryMock is an autogenerated mock type for the AlertHistoryRepositoryMock type
func (*AlertHistoryRepositoryMock) Create ¶
func (_m *AlertHistoryRepositoryMock) Create(_a0 *Alert) (*Alert, error)
Create provides a mock function with given fields: _a0
func (*AlertHistoryRepositoryMock) Get ¶
Get provides a mock function with given fields: _a0, _a1, _a2
func (*AlertHistoryRepositoryMock) Migrate ¶
func (_m *AlertHistoryRepositoryMock) 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) Migrate ¶
func (r Repository) Migrate() error
Click to show internal directories.
Click to hide internal directories.