Documentation ¶
Index ¶
- type WebsiteStatusChecker
- type WebsiteStatusService
- func (_m *WebsiteStatusService) CreateWebsite(ctx context.Context, website *domain.Website) error
- func (_m *WebsiteStatusService) DeleteWebsite(ctx context.Context, id int64) error
- func (_m *WebsiteStatusService) GetWebsiteStatusByID(ctx context.Context, id int64) (domain.WebsiteStatus, error)
- func (_m *WebsiteStatusService) ListWebsiteStatuses(ctx context.Context, websiteID int64, cursor string, num int64) ([]domain.Status, string, error)
- func (_m *WebsiteStatusService) ListWebsitesStatus(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.WebsiteStatus, string, error)
- type WebsiteStatusStorer
- func (_m *WebsiteStatusStorer) DropWebsite(ctx context.Context, id int64) error
- func (_m *WebsiteStatusStorer) InsertStatus(ctx context.Context, status *domain.Status) error
- func (_m *WebsiteStatusStorer) InsertWebsite(ctx context.Context, website *domain.Website) error
- func (_m *WebsiteStatusStorer) QueryStatusesByWebsiteID(ctx context.Context, websiteID int64, cursor string, num int64) ([]domain.Status, string, error)
- func (_m *WebsiteStatusStorer) QueryWebsiteStatusByID(ctx context.Context, id int64) (domain.WebsiteStatus, error)
- func (_m *WebsiteStatusStorer) QueryWebsites(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.Website, string, error)
- func (_m *WebsiteStatusStorer) QueryWebsitesStatus(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.WebsiteStatus, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebsiteStatusChecker ¶
WebsiteStatusChecker is an autogenerated mock type for the WebsiteStatusChecker type
func NewWebsiteStatusChecker ¶
func NewWebsiteStatusChecker(t mockConstructorTestingTNewWebsiteStatusChecker) *WebsiteStatusChecker
NewWebsiteStatusChecker creates a new instance of WebsiteStatusChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WebsiteStatusChecker) CreateStatus ¶
CreateStatus provides a mock function with given fields: ctx, status
type WebsiteStatusService ¶
WebsiteStatusService is an autogenerated mock type for the WebsiteStatusService type
func NewWebsiteStatusService ¶
func NewWebsiteStatusService(t mockConstructorTestingTNewWebsiteStatusService) *WebsiteStatusService
NewWebsiteStatusService creates a new instance of WebsiteStatusService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WebsiteStatusService) CreateWebsite ¶
CreateWebsite provides a mock function with given fields: ctx, website
func (*WebsiteStatusService) DeleteWebsite ¶
func (_m *WebsiteStatusService) DeleteWebsite(ctx context.Context, id int64) error
DeleteWebsite provides a mock function with given fields: ctx, id
func (*WebsiteStatusService) GetWebsiteStatusByID ¶
func (_m *WebsiteStatusService) GetWebsiteStatusByID(ctx context.Context, id int64) (domain.WebsiteStatus, error)
GetWebsiteStatusByID provides a mock function with given fields: ctx, id
func (*WebsiteStatusService) ListWebsiteStatuses ¶
func (_m *WebsiteStatusService) ListWebsiteStatuses(ctx context.Context, websiteID int64, cursor string, num int64) ([]domain.Status, string, error)
ListWebsiteStatuses provides a mock function with given fields: ctx, websiteID, cursor, num
func (*WebsiteStatusService) ListWebsitesStatus ¶
func (_m *WebsiteStatusService) ListWebsitesStatus(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.WebsiteStatus, string, error)
ListWebsitesStatus provides a mock function with given fields: ctx, cursor, num, filters
type WebsiteStatusStorer ¶
WebsiteStatusStorer is an autogenerated mock type for the WebsiteStatusStorer type
func NewWebsiteStatusStorer ¶
func NewWebsiteStatusStorer(t mockConstructorTestingTNewWebsiteStatusStorer) *WebsiteStatusStorer
NewWebsiteStatusStorer creates a new instance of WebsiteStatusStorer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WebsiteStatusStorer) DropWebsite ¶
func (_m *WebsiteStatusStorer) DropWebsite(ctx context.Context, id int64) error
DropWebsite provides a mock function with given fields: ctx, id
func (*WebsiteStatusStorer) InsertStatus ¶
InsertStatus provides a mock function with given fields: ctx, status
func (*WebsiteStatusStorer) InsertWebsite ¶
InsertWebsite provides a mock function with given fields: ctx, website
func (*WebsiteStatusStorer) QueryStatusesByWebsiteID ¶
func (_m *WebsiteStatusStorer) QueryStatusesByWebsiteID(ctx context.Context, websiteID int64, cursor string, num int64) ([]domain.Status, string, error)
QueryStatusesByWebsiteID provides a mock function with given fields: ctx, websiteID, cursor, num
func (*WebsiteStatusStorer) QueryWebsiteStatusByID ¶
func (_m *WebsiteStatusStorer) QueryWebsiteStatusByID(ctx context.Context, id int64) (domain.WebsiteStatus, error)
QueryWebsiteStatusByID provides a mock function with given fields: ctx, id
func (*WebsiteStatusStorer) QueryWebsites ¶
func (_m *WebsiteStatusStorer) QueryWebsites(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.Website, string, error)
QueryWebsites provides a mock function with given fields: ctx, cursor, num, filters
func (*WebsiteStatusStorer) QueryWebsitesStatus ¶
func (_m *WebsiteStatusStorer) QueryWebsitesStatus(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.WebsiteStatus, string, error)
QueryWebsitesStatus provides a mock function with given fields: ctx, cursor, num, filters