Documentation
¶
Index ¶
- type MockAPIKeyService
- func (_mock *MockAPIKeyService) Create(ctx context.Context, userID int, name string) (string, *apikey.APIKey, error)
- func (_m *MockAPIKeyService) EXPECT() *MockAPIKeyService_Expecter
- func (_mock *MockAPIKeyService) List(ctx context.Context, userID int) ([]*apikey.APIKey, error)
- func (_mock *MockAPIKeyService) Revoke(ctx context.Context, id int, userID int) (*apikey.APIKey, error)
- type MockAPIKeyService_Create_Call
- func (_c *MockAPIKeyService_Create_Call) Return(s string, aPIKey *apikey.APIKey, err error) *MockAPIKeyService_Create_Call
- func (_c *MockAPIKeyService_Create_Call) Run(run func(ctx context.Context, userID int, name string)) *MockAPIKeyService_Create_Call
- func (_c *MockAPIKeyService_Create_Call) RunAndReturn(...) *MockAPIKeyService_Create_Call
- type MockAPIKeyService_Expecter
- func (_e *MockAPIKeyService_Expecter) Create(ctx any, userID any, name any) *MockAPIKeyService_Create_Call
- func (_e *MockAPIKeyService_Expecter) List(ctx any, userID any) *MockAPIKeyService_List_Call
- func (_e *MockAPIKeyService_Expecter) Revoke(ctx any, id any, userID any) *MockAPIKeyService_Revoke_Call
- type MockAPIKeyService_List_Call
- func (_c *MockAPIKeyService_List_Call) Return(aPIKeys []*apikey.APIKey, err error) *MockAPIKeyService_List_Call
- func (_c *MockAPIKeyService_List_Call) Run(run func(ctx context.Context, userID int)) *MockAPIKeyService_List_Call
- func (_c *MockAPIKeyService_List_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*apikey.APIKey, error)) *MockAPIKeyService_List_Call
- type MockAPIKeyService_Revoke_Call
- func (_c *MockAPIKeyService_Revoke_Call) Return(aPIKey *apikey.APIKey, err error) *MockAPIKeyService_Revoke_Call
- func (_c *MockAPIKeyService_Revoke_Call) Run(run func(ctx context.Context, id int, userID int)) *MockAPIKeyService_Revoke_Call
- func (_c *MockAPIKeyService_Revoke_Call) RunAndReturn(run func(ctx context.Context, id int, userID int) (*apikey.APIKey, error)) *MockAPIKeyService_Revoke_Call
- type MockContentServiceInterface
- func (_mock *MockContentServiceInterface) AuthorExists(ctx context.Context, username string) (bool, error)
- func (_mock *MockContentServiceInterface) Create(ctx context.Context, userID int, req content.CreateContentRequest) (*content.Content, error)
- func (_mock *MockContentServiceInterface) DeleteContent(ctx context.Context, id int, userID int, role string) error
- func (_m *MockContentServiceInterface) EXPECT() *MockContentServiceInterface_Expecter
- func (_mock *MockContentServiceInterface) GenerateSlugFromTitle(ctx context.Context, title string) (string, error)
- func (_mock *MockContentServiceInterface) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) GetByID(ctx context.Context, id int) (*content.Content, error)
- func (_mock *MockContentServiceInterface) GetByUser(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) GetPublished(ctx context.Context, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) GetPublishedArchive(ctx context.Context, postType string, language string) ([]*content.ArchiveMonth, error)
- func (_mock *MockContentServiceInterface) GetPublishedAuthors(ctx context.Context, limit int, offset int) ([]*content.PublishedAuthor, error)
- func (_mock *MockContentServiceInterface) GetPublishedByAuthorUsername(ctx context.Context, username string, language string, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) GetPublishedByPostType(ctx context.Context, postType string, language string, year int, month int, ...) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
- func (_mock *MockContentServiceInterface) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) ListByFilters(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) SearchPublished(ctx context.Context, query string, limit int) ([]*content.Content, error)
- func (_mock *MockContentServiceInterface) SetSystemFields(ctx context.Context, contentID int, systemFields map[string]any) (*content.Content, error)
- func (_mock *MockContentServiceInterface) Update(ctx context.Context, id int, userID int, role string, ...) (*content.Content, error)
- type MockContentServiceInterface_AuthorExists_Call
- func (_c *MockContentServiceInterface_AuthorExists_Call) Return(b bool, err error) *MockContentServiceInterface_AuthorExists_Call
- func (_c *MockContentServiceInterface_AuthorExists_Call) Run(run func(ctx context.Context, username string)) *MockContentServiceInterface_AuthorExists_Call
- func (_c *MockContentServiceInterface_AuthorExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockContentServiceInterface_AuthorExists_Call
- type MockContentServiceInterface_Create_Call
- func (_c *MockContentServiceInterface_Create_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_Create_Call
- func (_c *MockContentServiceInterface_Create_Call) Run(run func(ctx context.Context, userID int, req content.CreateContentRequest)) *MockContentServiceInterface_Create_Call
- func (_c *MockContentServiceInterface_Create_Call) RunAndReturn(...) *MockContentServiceInterface_Create_Call
- type MockContentServiceInterface_DeleteContent_Call
- func (_c *MockContentServiceInterface_DeleteContent_Call) Return(err error) *MockContentServiceInterface_DeleteContent_Call
- func (_c *MockContentServiceInterface_DeleteContent_Call) Run(run func(ctx context.Context, id int, userID int, role string)) *MockContentServiceInterface_DeleteContent_Call
- func (_c *MockContentServiceInterface_DeleteContent_Call) RunAndReturn(run func(ctx context.Context, id int, userID int, role string) error) *MockContentServiceInterface_DeleteContent_Call
- type MockContentServiceInterface_Expecter
- func (_e *MockContentServiceInterface_Expecter) AuthorExists(ctx any, username any) *MockContentServiceInterface_AuthorExists_Call
- func (_e *MockContentServiceInterface_Expecter) Create(ctx any, userID any, req any) *MockContentServiceInterface_Create_Call
- func (_e *MockContentServiceInterface_Expecter) DeleteContent(ctx any, id any, userID any, role any) *MockContentServiceInterface_DeleteContent_Call
- func (_e *MockContentServiceInterface_Expecter) GenerateSlugFromTitle(ctx any, title any) *MockContentServiceInterface_GenerateSlugFromTitle_Call
- func (_e *MockContentServiceInterface_Expecter) GetAll(ctx any, limit any, offset any) *MockContentServiceInterface_GetAll_Call
- func (_e *MockContentServiceInterface_Expecter) GetByID(ctx any, id any) *MockContentServiceInterface_GetByID_Call
- func (_e *MockContentServiceInterface_Expecter) GetByUser(ctx any, userID any, limit any, offset any) *MockContentServiceInterface_GetByUser_Call
- func (_e *MockContentServiceInterface_Expecter) GetPublished(ctx any, limit any, offset any) *MockContentServiceInterface_GetPublished_Call
- func (_e *MockContentServiceInterface_Expecter) GetPublishedArchive(ctx any, postType any, language any) *MockContentServiceInterface_GetPublishedArchive_Call
- func (_e *MockContentServiceInterface_Expecter) GetPublishedAuthors(ctx any, limit any, offset any) *MockContentServiceInterface_GetPublishedAuthors_Call
- func (_e *MockContentServiceInterface_Expecter) GetPublishedByAuthorUsername(ctx any, username any, language any, limit any, offset any) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
- func (_e *MockContentServiceInterface_Expecter) GetPublishedByPostType(ctx any, postType any, language any, year any, month any, limit any, ...) *MockContentServiceInterface_GetPublishedByPostType_Call
- func (_e *MockContentServiceInterface_Expecter) GetPublishedBySlug(ctx any, slug any, language any) *MockContentServiceInterface_GetPublishedBySlug_Call
- func (_e *MockContentServiceInterface_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockContentServiceInterface_GetTranslations_Call
- func (_e *MockContentServiceInterface_Expecter) ListByFilters(ctx any, userID any, filters any) *MockContentServiceInterface_ListByFilters_Call
- func (_e *MockContentServiceInterface_Expecter) SearchPublished(ctx any, query any, limit any) *MockContentServiceInterface_SearchPublished_Call
- func (_e *MockContentServiceInterface_Expecter) SetSystemFields(ctx any, contentID any, systemFields any) *MockContentServiceInterface_SetSystemFields_Call
- func (_e *MockContentServiceInterface_Expecter) Update(ctx any, id any, userID any, role any, req any) *MockContentServiceInterface_Update_Call
- type MockContentServiceInterface_GenerateSlugFromTitle_Call
- func (_c *MockContentServiceInterface_GenerateSlugFromTitle_Call) Return(s string, err error) *MockContentServiceInterface_GenerateSlugFromTitle_Call
- func (_c *MockContentServiceInterface_GenerateSlugFromTitle_Call) Run(run func(ctx context.Context, title string)) *MockContentServiceInterface_GenerateSlugFromTitle_Call
- func (_c *MockContentServiceInterface_GenerateSlugFromTitle_Call) RunAndReturn(run func(ctx context.Context, title string) (string, error)) *MockContentServiceInterface_GenerateSlugFromTitle_Call
- type MockContentServiceInterface_GetAll_Call
- func (_c *MockContentServiceInterface_GetAll_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetAll_Call
- func (_c *MockContentServiceInterface_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentServiceInterface_GetAll_Call
- func (_c *MockContentServiceInterface_GetAll_Call) RunAndReturn(...) *MockContentServiceInterface_GetAll_Call
- type MockContentServiceInterface_GetByID_Call
- func (_c *MockContentServiceInterface_GetByID_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_GetByID_Call
- func (_c *MockContentServiceInterface_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockContentServiceInterface_GetByID_Call
- func (_c *MockContentServiceInterface_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*content.Content, error)) *MockContentServiceInterface_GetByID_Call
- type MockContentServiceInterface_GetByUser_Call
- func (_c *MockContentServiceInterface_GetByUser_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetByUser_Call
- func (_c *MockContentServiceInterface_GetByUser_Call) Run(run func(ctx context.Context, userID int, limit int, offset int)) *MockContentServiceInterface_GetByUser_Call
- func (_c *MockContentServiceInterface_GetByUser_Call) RunAndReturn(...) *MockContentServiceInterface_GetByUser_Call
- type MockContentServiceInterface_GetPublishedArchive_Call
- func (_c *MockContentServiceInterface_GetPublishedArchive_Call) Return(archiveMonths []*content.ArchiveMonth, err error) *MockContentServiceInterface_GetPublishedArchive_Call
- func (_c *MockContentServiceInterface_GetPublishedArchive_Call) Run(run func(ctx context.Context, postType string, language string)) *MockContentServiceInterface_GetPublishedArchive_Call
- func (_c *MockContentServiceInterface_GetPublishedArchive_Call) RunAndReturn(...) *MockContentServiceInterface_GetPublishedArchive_Call
- type MockContentServiceInterface_GetPublishedAuthors_Call
- func (_c *MockContentServiceInterface_GetPublishedAuthors_Call) Return(publishedAuthors []*content.PublishedAuthor, err error) *MockContentServiceInterface_GetPublishedAuthors_Call
- func (_c *MockContentServiceInterface_GetPublishedAuthors_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentServiceInterface_GetPublishedAuthors_Call
- func (_c *MockContentServiceInterface_GetPublishedAuthors_Call) RunAndReturn(...) *MockContentServiceInterface_GetPublishedAuthors_Call
- type MockContentServiceInterface_GetPublishedByAuthorUsername_Call
- func (_c *MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
- func (_c *MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Run(...) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
- func (_c *MockContentServiceInterface_GetPublishedByAuthorUsername_Call) RunAndReturn(...) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
- type MockContentServiceInterface_GetPublishedByPostType_Call
- func (_c *MockContentServiceInterface_GetPublishedByPostType_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetPublishedByPostType_Call
- func (_c *MockContentServiceInterface_GetPublishedByPostType_Call) Run(...) *MockContentServiceInterface_GetPublishedByPostType_Call
- func (_c *MockContentServiceInterface_GetPublishedByPostType_Call) RunAndReturn(...) *MockContentServiceInterface_GetPublishedByPostType_Call
- type MockContentServiceInterface_GetPublishedBySlug_Call
- func (_c *MockContentServiceInterface_GetPublishedBySlug_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_GetPublishedBySlug_Call
- func (_c *MockContentServiceInterface_GetPublishedBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockContentServiceInterface_GetPublishedBySlug_Call
- func (_c *MockContentServiceInterface_GetPublishedBySlug_Call) RunAndReturn(...) *MockContentServiceInterface_GetPublishedBySlug_Call
- type MockContentServiceInterface_GetPublished_Call
- func (_c *MockContentServiceInterface_GetPublished_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetPublished_Call
- func (_c *MockContentServiceInterface_GetPublished_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentServiceInterface_GetPublished_Call
- func (_c *MockContentServiceInterface_GetPublished_Call) RunAndReturn(...) *MockContentServiceInterface_GetPublished_Call
- type MockContentServiceInterface_GetTranslations_Call
- func (_c *MockContentServiceInterface_GetTranslations_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetTranslations_Call
- func (_c *MockContentServiceInterface_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockContentServiceInterface_GetTranslations_Call
- func (_c *MockContentServiceInterface_GetTranslations_Call) RunAndReturn(...) *MockContentServiceInterface_GetTranslations_Call
- type MockContentServiceInterface_ListByFilters_Call
- func (_c *MockContentServiceInterface_ListByFilters_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_ListByFilters_Call
- func (_c *MockContentServiceInterface_ListByFilters_Call) Run(run func(ctx context.Context, userID int, filters content.ContentFilters)) *MockContentServiceInterface_ListByFilters_Call
- func (_c *MockContentServiceInterface_ListByFilters_Call) RunAndReturn(...) *MockContentServiceInterface_ListByFilters_Call
- type MockContentServiceInterface_SearchPublished_Call
- func (_c *MockContentServiceInterface_SearchPublished_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_SearchPublished_Call
- func (_c *MockContentServiceInterface_SearchPublished_Call) Run(run func(ctx context.Context, query string, limit int)) *MockContentServiceInterface_SearchPublished_Call
- func (_c *MockContentServiceInterface_SearchPublished_Call) RunAndReturn(...) *MockContentServiceInterface_SearchPublished_Call
- type MockContentServiceInterface_SetSystemFields_Call
- func (_c *MockContentServiceInterface_SetSystemFields_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_SetSystemFields_Call
- func (_c *MockContentServiceInterface_SetSystemFields_Call) Run(run func(ctx context.Context, contentID int, systemFields map[string]any)) *MockContentServiceInterface_SetSystemFields_Call
- func (_c *MockContentServiceInterface_SetSystemFields_Call) RunAndReturn(...) *MockContentServiceInterface_SetSystemFields_Call
- type MockContentServiceInterface_Update_Call
- func (_c *MockContentServiceInterface_Update_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_Update_Call
- func (_c *MockContentServiceInterface_Update_Call) Run(run func(ctx context.Context, id int, userID int, role string, ...)) *MockContentServiceInterface_Update_Call
- func (_c *MockContentServiceInterface_Update_Call) RunAndReturn(...) *MockContentServiceInterface_Update_Call
- type MockDashboardServiceInterface
- type MockDashboardServiceInterface_Expecter
- type MockDashboardServiceInterface_GetStats_Call
- func (_c *MockDashboardServiceInterface_GetStats_Call) Return(stats *dashboard.Stats, err error) *MockDashboardServiceInterface_GetStats_Call
- func (_c *MockDashboardServiceInterface_GetStats_Call) Run(run func(ctx context.Context, userID int)) *MockDashboardServiceInterface_GetStats_Call
- func (_c *MockDashboardServiceInterface_GetStats_Call) RunAndReturn(run func(ctx context.Context, userID int) (*dashboard.Stats, error)) *MockDashboardServiceInterface_GetStats_Call
- type MockMediaLister
- type MockMediaLister_Expecter
- type MockMediaLister_ListByCursor_Call
- func (_c *MockMediaLister_ListByCursor_Call) Return(medias []*media.Media, err error) *MockMediaLister_ListByCursor_Call
- func (_c *MockMediaLister_ListByCursor_Call) Run(run func(ctx context.Context, userID int, limit int, beforeID int)) *MockMediaLister_ListByCursor_Call
- func (_c *MockMediaLister_ListByCursor_Call) RunAndReturn(...) *MockMediaLister_ListByCursor_Call
- type MockMediaServiceInterface
- func (_mock *MockMediaServiceInterface) Delete(ctx context.Context, id int, userID int, userRole string) error
- func (_m *MockMediaServiceInterface) EXPECT() *MockMediaServiceInterface_Expecter
- func (_mock *MockMediaServiceInterface) ForceUpload(ctx context.Context, req media.UploadRequest) (*media.Media, error)
- func (_mock *MockMediaServiceInterface) GenerateFromBytes(ctx context.Context, imageBytes []byte, userID int, altText string, ...) (*media.Media, error)
- func (_mock *MockMediaServiceInterface) GetAll(ctx context.Context, limit int, offset int) ([]*media.Media, error)
- func (_mock *MockMediaServiceInterface) GetByID(ctx context.Context, id int) (*media.Media, error)
- func (_mock *MockMediaServiceInterface) SearchMedia(ctx context.Context, search string, dateFilter string, limit int, offset int) ([]*media.Media, error)
- func (_mock *MockMediaServiceInterface) Upload(ctx context.Context, req media.UploadRequest) (*media.Media, error)
- type MockMediaServiceInterface_Delete_Call
- func (_c *MockMediaServiceInterface_Delete_Call) Return(err error) *MockMediaServiceInterface_Delete_Call
- func (_c *MockMediaServiceInterface_Delete_Call) Run(run func(ctx context.Context, id int, userID int, userRole string)) *MockMediaServiceInterface_Delete_Call
- func (_c *MockMediaServiceInterface_Delete_Call) RunAndReturn(run func(ctx context.Context, id int, userID int, userRole string) error) *MockMediaServiceInterface_Delete_Call
- type MockMediaServiceInterface_Expecter
- func (_e *MockMediaServiceInterface_Expecter) Delete(ctx any, id any, userID any, userRole any) *MockMediaServiceInterface_Delete_Call
- func (_e *MockMediaServiceInterface_Expecter) ForceUpload(ctx any, req any) *MockMediaServiceInterface_ForceUpload_Call
- func (_e *MockMediaServiceInterface_Expecter) GenerateFromBytes(ctx any, imageBytes any, userID any, altText any, originalFilename any) *MockMediaServiceInterface_GenerateFromBytes_Call
- func (_e *MockMediaServiceInterface_Expecter) GetAll(ctx any, limit any, offset any) *MockMediaServiceInterface_GetAll_Call
- func (_e *MockMediaServiceInterface_Expecter) GetByID(ctx any, id any) *MockMediaServiceInterface_GetByID_Call
- func (_e *MockMediaServiceInterface_Expecter) SearchMedia(ctx any, search any, dateFilter any, limit any, offset any) *MockMediaServiceInterface_SearchMedia_Call
- func (_e *MockMediaServiceInterface_Expecter) Upload(ctx any, req any) *MockMediaServiceInterface_Upload_Call
- type MockMediaServiceInterface_ForceUpload_Call
- func (_c *MockMediaServiceInterface_ForceUpload_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_ForceUpload_Call
- func (_c *MockMediaServiceInterface_ForceUpload_Call) Run(run func(ctx context.Context, req media.UploadRequest)) *MockMediaServiceInterface_ForceUpload_Call
- func (_c *MockMediaServiceInterface_ForceUpload_Call) RunAndReturn(run func(ctx context.Context, req media.UploadRequest) (*media.Media, error)) *MockMediaServiceInterface_ForceUpload_Call
- type MockMediaServiceInterface_GenerateFromBytes_Call
- func (_c *MockMediaServiceInterface_GenerateFromBytes_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_GenerateFromBytes_Call
- func (_c *MockMediaServiceInterface_GenerateFromBytes_Call) Run(...) *MockMediaServiceInterface_GenerateFromBytes_Call
- func (_c *MockMediaServiceInterface_GenerateFromBytes_Call) RunAndReturn(...) *MockMediaServiceInterface_GenerateFromBytes_Call
- type MockMediaServiceInterface_GetAll_Call
- func (_c *MockMediaServiceInterface_GetAll_Call) Return(medias []*media.Media, err error) *MockMediaServiceInterface_GetAll_Call
- func (_c *MockMediaServiceInterface_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockMediaServiceInterface_GetAll_Call
- func (_c *MockMediaServiceInterface_GetAll_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*media.Media, error)) *MockMediaServiceInterface_GetAll_Call
- type MockMediaServiceInterface_GetByID_Call
- func (_c *MockMediaServiceInterface_GetByID_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_GetByID_Call
- func (_c *MockMediaServiceInterface_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockMediaServiceInterface_GetByID_Call
- func (_c *MockMediaServiceInterface_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*media.Media, error)) *MockMediaServiceInterface_GetByID_Call
- type MockMediaServiceInterface_SearchMedia_Call
- func (_c *MockMediaServiceInterface_SearchMedia_Call) Return(medias []*media.Media, err error) *MockMediaServiceInterface_SearchMedia_Call
- func (_c *MockMediaServiceInterface_SearchMedia_Call) Run(...) *MockMediaServiceInterface_SearchMedia_Call
- func (_c *MockMediaServiceInterface_SearchMedia_Call) RunAndReturn(...) *MockMediaServiceInterface_SearchMedia_Call
- type MockMediaServiceInterface_Upload_Call
- func (_c *MockMediaServiceInterface_Upload_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_Upload_Call
- func (_c *MockMediaServiceInterface_Upload_Call) Run(run func(ctx context.Context, req media.UploadRequest)) *MockMediaServiceInterface_Upload_Call
- func (_c *MockMediaServiceInterface_Upload_Call) RunAndReturn(run func(ctx context.Context, req media.UploadRequest) (*media.Media, error)) *MockMediaServiceInterface_Upload_Call
- type MockPostTypeServiceInterface
- func (_m *MockPostTypeServiceInterface) EXPECT() *MockPostTypeServiceInterface_Expecter
- func (_mock *MockPostTypeServiceInterface) GetAll() []posttype.PostType
- func (_mock *MockPostTypeServiceInterface) GetBySlug(slug string) (posttype.PostType, error)
- func (_mock *MockPostTypeServiceInterface) GetUserFields() []customfield.FieldSchema
- func (_mock *MockPostTypeServiceInterface) GetUserSystemFields() []customfield.FieldSchema
- func (_mock *MockPostTypeServiceInterface) Register(pt posttype.PostType) error
- type MockPostTypeServiceInterface_Expecter
- func (_e *MockPostTypeServiceInterface_Expecter) GetAll() *MockPostTypeServiceInterface_GetAll_Call
- func (_e *MockPostTypeServiceInterface_Expecter) GetBySlug(slug any) *MockPostTypeServiceInterface_GetBySlug_Call
- func (_e *MockPostTypeServiceInterface_Expecter) GetUserFields() *MockPostTypeServiceInterface_GetUserFields_Call
- func (_e *MockPostTypeServiceInterface_Expecter) GetUserSystemFields() *MockPostTypeServiceInterface_GetUserSystemFields_Call
- func (_e *MockPostTypeServiceInterface_Expecter) Register(pt any) *MockPostTypeServiceInterface_Register_Call
- type MockPostTypeServiceInterface_GetAll_Call
- func (_c *MockPostTypeServiceInterface_GetAll_Call) Return(postTypes []posttype.PostType) *MockPostTypeServiceInterface_GetAll_Call
- func (_c *MockPostTypeServiceInterface_GetAll_Call) Run(run func()) *MockPostTypeServiceInterface_GetAll_Call
- func (_c *MockPostTypeServiceInterface_GetAll_Call) RunAndReturn(run func() []posttype.PostType) *MockPostTypeServiceInterface_GetAll_Call
- type MockPostTypeServiceInterface_GetBySlug_Call
- func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Return(postType posttype.PostType, err error) *MockPostTypeServiceInterface_GetBySlug_Call
- func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetBySlug_Call
- func (_c *MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn(run func(slug string) (posttype.PostType, error)) *MockPostTypeServiceInterface_GetBySlug_Call
- type MockPostTypeServiceInterface_GetUserFields_Call
- func (_c *MockPostTypeServiceInterface_GetUserFields_Call) Return(fieldSchemas []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserFields_Call
- func (_c *MockPostTypeServiceInterface_GetUserFields_Call) Run(run func()) *MockPostTypeServiceInterface_GetUserFields_Call
- func (_c *MockPostTypeServiceInterface_GetUserFields_Call) RunAndReturn(run func() []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserFields_Call
- type MockPostTypeServiceInterface_GetUserSystemFields_Call
- func (_c *MockPostTypeServiceInterface_GetUserSystemFields_Call) Return(fieldSchemas []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserSystemFields_Call
- func (_c *MockPostTypeServiceInterface_GetUserSystemFields_Call) Run(run func()) *MockPostTypeServiceInterface_GetUserSystemFields_Call
- func (_c *MockPostTypeServiceInterface_GetUserSystemFields_Call) RunAndReturn(run func() []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserSystemFields_Call
- type MockPostTypeServiceInterface_Register_Call
- func (_c *MockPostTypeServiceInterface_Register_Call) Return(err error) *MockPostTypeServiceInterface_Register_Call
- func (_c *MockPostTypeServiceInterface_Register_Call) Run(run func(pt posttype.PostType)) *MockPostTypeServiceInterface_Register_Call
- func (_c *MockPostTypeServiceInterface_Register_Call) RunAndReturn(run func(pt posttype.PostType) error) *MockPostTypeServiceInterface_Register_Call
- type MockTextGenerationService
- func (_m *MockTextGenerationService) EXPECT() *MockTextGenerationService_Expecter
- func (_mock *MockTextGenerationService) EnhanceText(ctx context.Context, content string, format string, mediaContext string) (string, error)
- func (_mock *MockTextGenerationService) TranslateText(ctx context.Context, content string, sourceLang string, targetLang string, ...) (string, error)
- type MockTextGenerationService_EnhanceText_Call
- func (_c *MockTextGenerationService_EnhanceText_Call) Return(s string, err error) *MockTextGenerationService_EnhanceText_Call
- func (_c *MockTextGenerationService_EnhanceText_Call) Run(...) *MockTextGenerationService_EnhanceText_Call
- func (_c *MockTextGenerationService_EnhanceText_Call) RunAndReturn(...) *MockTextGenerationService_EnhanceText_Call
- type MockTextGenerationService_Expecter
- func (_e *MockTextGenerationService_Expecter) EnhanceText(ctx any, content any, format any, mediaContext any) *MockTextGenerationService_EnhanceText_Call
- func (_e *MockTextGenerationService_Expecter) TranslateText(ctx any, content any, sourceLang any, targetLang any, format any) *MockTextGenerationService_TranslateText_Call
- type MockTextGenerationService_TranslateText_Call
- func (_c *MockTextGenerationService_TranslateText_Call) Return(s string, err error) *MockTextGenerationService_TranslateText_Call
- func (_c *MockTextGenerationService_TranslateText_Call) Run(...) *MockTextGenerationService_TranslateText_Call
- func (_c *MockTextGenerationService_TranslateText_Call) RunAndReturn(...) *MockTextGenerationService_TranslateText_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIKeyService ¶
MockAPIKeyService is an autogenerated mock type for the APIKeyService type
func NewMockAPIKeyService ¶
func NewMockAPIKeyService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAPIKeyService
NewMockAPIKeyService creates a new instance of MockAPIKeyService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAPIKeyService) Create ¶
func (_mock *MockAPIKeyService) Create(ctx context.Context, userID int, name string) (string, *apikey.APIKey, error)
Create provides a mock function for the type MockAPIKeyService
func (*MockAPIKeyService) EXPECT ¶
func (_m *MockAPIKeyService) EXPECT() *MockAPIKeyService_Expecter
type MockAPIKeyService_Create_Call ¶
MockAPIKeyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockAPIKeyService_Create_Call) Return ¶
func (_c *MockAPIKeyService_Create_Call) Return(s string, aPIKey *apikey.APIKey, err error) *MockAPIKeyService_Create_Call
func (*MockAPIKeyService_Create_Call) Run ¶
func (_c *MockAPIKeyService_Create_Call) Run(run func(ctx context.Context, userID int, name string)) *MockAPIKeyService_Create_Call
func (*MockAPIKeyService_Create_Call) RunAndReturn ¶
func (_c *MockAPIKeyService_Create_Call) RunAndReturn(run func(ctx context.Context, userID int, name string) (string, *apikey.APIKey, error)) *MockAPIKeyService_Create_Call
type MockAPIKeyService_Expecter ¶
type MockAPIKeyService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAPIKeyService_Expecter) Create ¶
func (_e *MockAPIKeyService_Expecter) Create(ctx any, userID any, name any) *MockAPIKeyService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- userID int
- name string
func (*MockAPIKeyService_Expecter) List ¶
func (_e *MockAPIKeyService_Expecter) List(ctx any, userID any) *MockAPIKeyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockAPIKeyService_Expecter) Revoke ¶
func (_e *MockAPIKeyService_Expecter) Revoke(ctx any, id any, userID any) *MockAPIKeyService_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- id int
- userID int
type MockAPIKeyService_List_Call ¶
MockAPIKeyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockAPIKeyService_List_Call) Return ¶
func (_c *MockAPIKeyService_List_Call) Return(aPIKeys []*apikey.APIKey, err error) *MockAPIKeyService_List_Call
func (*MockAPIKeyService_List_Call) Run ¶
func (_c *MockAPIKeyService_List_Call) Run(run func(ctx context.Context, userID int)) *MockAPIKeyService_List_Call
func (*MockAPIKeyService_List_Call) RunAndReturn ¶
func (_c *MockAPIKeyService_List_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*apikey.APIKey, error)) *MockAPIKeyService_List_Call
type MockAPIKeyService_Revoke_Call ¶
MockAPIKeyService_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*MockAPIKeyService_Revoke_Call) Return ¶
func (_c *MockAPIKeyService_Revoke_Call) Return(aPIKey *apikey.APIKey, err error) *MockAPIKeyService_Revoke_Call
func (*MockAPIKeyService_Revoke_Call) Run ¶
func (_c *MockAPIKeyService_Revoke_Call) Run(run func(ctx context.Context, id int, userID int)) *MockAPIKeyService_Revoke_Call
func (*MockAPIKeyService_Revoke_Call) RunAndReturn ¶
func (_c *MockAPIKeyService_Revoke_Call) RunAndReturn(run func(ctx context.Context, id int, userID int) (*apikey.APIKey, error)) *MockAPIKeyService_Revoke_Call
type MockContentServiceInterface ¶
MockContentServiceInterface is an autogenerated mock type for the ContentServiceInterface type
func NewMockContentServiceInterface ¶
func NewMockContentServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockContentServiceInterface
NewMockContentServiceInterface creates a new instance of MockContentServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockContentServiceInterface) AuthorExists ¶
func (_mock *MockContentServiceInterface) AuthorExists(ctx context.Context, username string) (bool, error)
AuthorExists provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) Create ¶
func (_mock *MockContentServiceInterface) Create(ctx context.Context, userID int, req content.CreateContentRequest) (*content.Content, error)
Create provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) DeleteContent ¶
func (_mock *MockContentServiceInterface) DeleteContent(ctx context.Context, id int, userID int, role string) error
DeleteContent provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) EXPECT ¶
func (_m *MockContentServiceInterface) EXPECT() *MockContentServiceInterface_Expecter
func (*MockContentServiceInterface) GenerateSlugFromTitle ¶
func (_mock *MockContentServiceInterface) GenerateSlugFromTitle(ctx context.Context, title string) (string, error)
GenerateSlugFromTitle provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetAll ¶
func (_mock *MockContentServiceInterface) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)
GetAll provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetByID ¶
func (_mock *MockContentServiceInterface) GetByID(ctx context.Context, id int) (*content.Content, error)
GetByID provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetByUser ¶
func (_mock *MockContentServiceInterface) GetByUser(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)
GetByUser provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetPublished ¶
func (_mock *MockContentServiceInterface) GetPublished(ctx context.Context, limit int, offset int) ([]*content.Content, error)
GetPublished provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetPublishedArchive ¶ added in v0.6.0
func (_mock *MockContentServiceInterface) GetPublishedArchive(ctx context.Context, postType string, language string) ([]*content.ArchiveMonth, error)
GetPublishedArchive provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetPublishedAuthors ¶ added in v0.5.0
func (_mock *MockContentServiceInterface) GetPublishedAuthors(ctx context.Context, limit int, offset int) ([]*content.PublishedAuthor, error)
GetPublishedAuthors provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetPublishedByAuthorUsername ¶
func (_mock *MockContentServiceInterface) GetPublishedByAuthorUsername(ctx context.Context, username string, language string, limit int, offset int) ([]*content.Content, error)
GetPublishedByAuthorUsername provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetPublishedByPostType ¶ added in v0.6.0
func (_mock *MockContentServiceInterface) GetPublishedByPostType(ctx context.Context, postType string, language string, year int, month int, limit int, offset int) ([]*content.Content, error)
GetPublishedByPostType provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetPublishedBySlug ¶
func (_mock *MockContentServiceInterface) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
GetPublishedBySlug provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) GetTranslations ¶
func (_mock *MockContentServiceInterface) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
GetTranslations provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) ListByFilters ¶
func (_mock *MockContentServiceInterface) ListByFilters(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)
ListByFilters provides a mock function for the type MockContentServiceInterface
func (*MockContentServiceInterface) SearchPublished ¶
func (_mock *MockContentServiceInterface) SearchPublished(ctx context.Context, query string, limit int) ([]*content.Content, error)
SearchPublished provides a mock function for the type MockContentServiceInterface
type MockContentServiceInterface_AuthorExists_Call ¶
MockContentServiceInterface_AuthorExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthorExists'
func (*MockContentServiceInterface_AuthorExists_Call) Return ¶
func (_c *MockContentServiceInterface_AuthorExists_Call) Return(b bool, err error) *MockContentServiceInterface_AuthorExists_Call
func (*MockContentServiceInterface_AuthorExists_Call) Run ¶
func (_c *MockContentServiceInterface_AuthorExists_Call) Run(run func(ctx context.Context, username string)) *MockContentServiceInterface_AuthorExists_Call
func (*MockContentServiceInterface_AuthorExists_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_AuthorExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockContentServiceInterface_AuthorExists_Call
type MockContentServiceInterface_Create_Call ¶
MockContentServiceInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockContentServiceInterface_Create_Call) Return ¶
func (_c *MockContentServiceInterface_Create_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_Create_Call
func (*MockContentServiceInterface_Create_Call) Run ¶
func (_c *MockContentServiceInterface_Create_Call) Run(run func(ctx context.Context, userID int, req content.CreateContentRequest)) *MockContentServiceInterface_Create_Call
func (*MockContentServiceInterface_Create_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_Create_Call) RunAndReturn(run func(ctx context.Context, userID int, req content.CreateContentRequest) (*content.Content, error)) *MockContentServiceInterface_Create_Call
type MockContentServiceInterface_DeleteContent_Call ¶
MockContentServiceInterface_DeleteContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteContent'
func (*MockContentServiceInterface_DeleteContent_Call) Return ¶
func (_c *MockContentServiceInterface_DeleteContent_Call) Return(err error) *MockContentServiceInterface_DeleteContent_Call
func (*MockContentServiceInterface_DeleteContent_Call) Run ¶
func (_c *MockContentServiceInterface_DeleteContent_Call) Run(run func(ctx context.Context, id int, userID int, role string)) *MockContentServiceInterface_DeleteContent_Call
func (*MockContentServiceInterface_DeleteContent_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_DeleteContent_Call) RunAndReturn(run func(ctx context.Context, id int, userID int, role string) error) *MockContentServiceInterface_DeleteContent_Call
type MockContentServiceInterface_Expecter ¶
type MockContentServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockContentServiceInterface_Expecter) AuthorExists ¶
func (_e *MockContentServiceInterface_Expecter) AuthorExists(ctx any, username any) *MockContentServiceInterface_AuthorExists_Call
AuthorExists is a helper method to define mock.On call
- ctx context.Context
- username string
func (*MockContentServiceInterface_Expecter) Create ¶
func (_e *MockContentServiceInterface_Expecter) Create(ctx any, userID any, req any) *MockContentServiceInterface_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- userID int
- req content.CreateContentRequest
func (*MockContentServiceInterface_Expecter) DeleteContent ¶
func (_e *MockContentServiceInterface_Expecter) DeleteContent(ctx any, id any, userID any, role any) *MockContentServiceInterface_DeleteContent_Call
DeleteContent is a helper method to define mock.On call
- ctx context.Context
- id int
- userID int
- role string
func (*MockContentServiceInterface_Expecter) GenerateSlugFromTitle ¶
func (_e *MockContentServiceInterface_Expecter) GenerateSlugFromTitle(ctx any, title any) *MockContentServiceInterface_GenerateSlugFromTitle_Call
GenerateSlugFromTitle is a helper method to define mock.On call
- ctx context.Context
- title string
func (*MockContentServiceInterface_Expecter) GetAll ¶
func (_e *MockContentServiceInterface_Expecter) GetAll(ctx any, limit any, offset any) *MockContentServiceInterface_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockContentServiceInterface_Expecter) GetByID ¶
func (_e *MockContentServiceInterface_Expecter) GetByID(ctx any, id any) *MockContentServiceInterface_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockContentServiceInterface_Expecter) GetByUser ¶
func (_e *MockContentServiceInterface_Expecter) GetByUser(ctx any, userID any, limit any, offset any) *MockContentServiceInterface_GetByUser_Call
GetByUser is a helper method to define mock.On call
- ctx context.Context
- userID int
- limit int
- offset int
func (*MockContentServiceInterface_Expecter) GetPublished ¶
func (_e *MockContentServiceInterface_Expecter) GetPublished(ctx any, limit any, offset any) *MockContentServiceInterface_GetPublished_Call
GetPublished is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockContentServiceInterface_Expecter) GetPublishedArchive ¶ added in v0.6.0
func (_e *MockContentServiceInterface_Expecter) GetPublishedArchive(ctx any, postType any, language any) *MockContentServiceInterface_GetPublishedArchive_Call
GetPublishedArchive is a helper method to define mock.On call
- ctx context.Context
- postType string
- language string
func (*MockContentServiceInterface_Expecter) GetPublishedAuthors ¶ added in v0.5.0
func (_e *MockContentServiceInterface_Expecter) GetPublishedAuthors(ctx any, limit any, offset any) *MockContentServiceInterface_GetPublishedAuthors_Call
GetPublishedAuthors is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockContentServiceInterface_Expecter) GetPublishedByAuthorUsername ¶
func (_e *MockContentServiceInterface_Expecter) GetPublishedByAuthorUsername(ctx any, username any, language any, limit any, offset any) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
GetPublishedByAuthorUsername is a helper method to define mock.On call
- ctx context.Context
- username string
- language string
- limit int
- offset int
func (*MockContentServiceInterface_Expecter) GetPublishedByPostType ¶ added in v0.6.0
func (_e *MockContentServiceInterface_Expecter) GetPublishedByPostType(ctx any, postType any, language any, year any, month any, limit any, offset any) *MockContentServiceInterface_GetPublishedByPostType_Call
GetPublishedByPostType is a helper method to define mock.On call
- ctx context.Context
- postType string
- language string
- year int
- month int
- limit int
- offset int
func (*MockContentServiceInterface_Expecter) GetPublishedBySlug ¶
func (_e *MockContentServiceInterface_Expecter) GetPublishedBySlug(ctx any, slug any, language any) *MockContentServiceInterface_GetPublishedBySlug_Call
GetPublishedBySlug is a helper method to define mock.On call
- ctx context.Context
- slug string
- language string
func (*MockContentServiceInterface_Expecter) GetTranslations ¶
func (_e *MockContentServiceInterface_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockContentServiceInterface_GetTranslations_Call
GetTranslations is a helper method to define mock.On call
- ctx context.Context
- translationGroupID int
- excludeID int
func (*MockContentServiceInterface_Expecter) ListByFilters ¶
func (_e *MockContentServiceInterface_Expecter) ListByFilters(ctx any, userID any, filters any) *MockContentServiceInterface_ListByFilters_Call
ListByFilters is a helper method to define mock.On call
- ctx context.Context
- userID int
- filters content.ContentFilters
func (*MockContentServiceInterface_Expecter) SearchPublished ¶
func (_e *MockContentServiceInterface_Expecter) SearchPublished(ctx any, query any, limit any) *MockContentServiceInterface_SearchPublished_Call
SearchPublished is a helper method to define mock.On call
- ctx context.Context
- query string
- limit int
func (*MockContentServiceInterface_Expecter) SetSystemFields ¶
func (_e *MockContentServiceInterface_Expecter) SetSystemFields(ctx any, contentID any, systemFields any) *MockContentServiceInterface_SetSystemFields_Call
SetSystemFields is a helper method to define mock.On call
- ctx context.Context
- contentID int
- systemFields map[string]any
func (*MockContentServiceInterface_Expecter) Update ¶
func (_e *MockContentServiceInterface_Expecter) Update(ctx any, id any, userID any, role any, req any) *MockContentServiceInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id int
- userID int
- role string
- req content.UpdateContentRequest
type MockContentServiceInterface_GenerateSlugFromTitle_Call ¶
MockContentServiceInterface_GenerateSlugFromTitle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateSlugFromTitle'
func (*MockContentServiceInterface_GenerateSlugFromTitle_Call) Return ¶
func (_c *MockContentServiceInterface_GenerateSlugFromTitle_Call) Return(s string, err error) *MockContentServiceInterface_GenerateSlugFromTitle_Call
func (*MockContentServiceInterface_GenerateSlugFromTitle_Call) Run ¶
func (_c *MockContentServiceInterface_GenerateSlugFromTitle_Call) Run(run func(ctx context.Context, title string)) *MockContentServiceInterface_GenerateSlugFromTitle_Call
func (*MockContentServiceInterface_GenerateSlugFromTitle_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GenerateSlugFromTitle_Call) RunAndReturn(run func(ctx context.Context, title string) (string, error)) *MockContentServiceInterface_GenerateSlugFromTitle_Call
type MockContentServiceInterface_GetAll_Call ¶
MockContentServiceInterface_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockContentServiceInterface_GetAll_Call) Return ¶
func (_c *MockContentServiceInterface_GetAll_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetAll_Call
func (*MockContentServiceInterface_GetAll_Call) Run ¶
func (_c *MockContentServiceInterface_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentServiceInterface_GetAll_Call
func (*MockContentServiceInterface_GetAll_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GetAll_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.Content, error)) *MockContentServiceInterface_GetAll_Call
type MockContentServiceInterface_GetByID_Call ¶
MockContentServiceInterface_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockContentServiceInterface_GetByID_Call) Return ¶
func (_c *MockContentServiceInterface_GetByID_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_GetByID_Call
func (*MockContentServiceInterface_GetByID_Call) Run ¶
func (_c *MockContentServiceInterface_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockContentServiceInterface_GetByID_Call
func (*MockContentServiceInterface_GetByID_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*content.Content, error)) *MockContentServiceInterface_GetByID_Call
type MockContentServiceInterface_GetByUser_Call ¶
MockContentServiceInterface_GetByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByUser'
func (*MockContentServiceInterface_GetByUser_Call) Return ¶
func (_c *MockContentServiceInterface_GetByUser_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetByUser_Call
func (*MockContentServiceInterface_GetByUser_Call) Run ¶
func (_c *MockContentServiceInterface_GetByUser_Call) Run(run func(ctx context.Context, userID int, limit int, offset int)) *MockContentServiceInterface_GetByUser_Call
func (*MockContentServiceInterface_GetByUser_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GetByUser_Call) RunAndReturn(run func(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)) *MockContentServiceInterface_GetByUser_Call
type MockContentServiceInterface_GetPublishedArchive_Call ¶ added in v0.6.0
MockContentServiceInterface_GetPublishedArchive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedArchive'
func (*MockContentServiceInterface_GetPublishedArchive_Call) Return ¶ added in v0.6.0
func (_c *MockContentServiceInterface_GetPublishedArchive_Call) Return(archiveMonths []*content.ArchiveMonth, err error) *MockContentServiceInterface_GetPublishedArchive_Call
func (*MockContentServiceInterface_GetPublishedArchive_Call) Run ¶ added in v0.6.0
func (_c *MockContentServiceInterface_GetPublishedArchive_Call) Run(run func(ctx context.Context, postType string, language string)) *MockContentServiceInterface_GetPublishedArchive_Call
func (*MockContentServiceInterface_GetPublishedArchive_Call) RunAndReturn ¶ added in v0.6.0
func (_c *MockContentServiceInterface_GetPublishedArchive_Call) RunAndReturn(run func(ctx context.Context, postType string, language string) ([]*content.ArchiveMonth, error)) *MockContentServiceInterface_GetPublishedArchive_Call
type MockContentServiceInterface_GetPublishedAuthors_Call ¶ added in v0.5.0
MockContentServiceInterface_GetPublishedAuthors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedAuthors'
func (*MockContentServiceInterface_GetPublishedAuthors_Call) Return ¶ added in v0.5.0
func (_c *MockContentServiceInterface_GetPublishedAuthors_Call) Return(publishedAuthors []*content.PublishedAuthor, err error) *MockContentServiceInterface_GetPublishedAuthors_Call
func (*MockContentServiceInterface_GetPublishedAuthors_Call) Run ¶ added in v0.5.0
func (_c *MockContentServiceInterface_GetPublishedAuthors_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentServiceInterface_GetPublishedAuthors_Call
func (*MockContentServiceInterface_GetPublishedAuthors_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockContentServiceInterface_GetPublishedAuthors_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.PublishedAuthor, error)) *MockContentServiceInterface_GetPublishedAuthors_Call
type MockContentServiceInterface_GetPublishedByAuthorUsername_Call ¶
MockContentServiceInterface_GetPublishedByAuthorUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedByAuthorUsername'
func (*MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Return ¶
func (_c *MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
func (*MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Run ¶
func (_c *MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Run(run func(ctx context.Context, username string, language string, limit int, offset int)) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call
func (*MockContentServiceInterface_GetPublishedByAuthorUsername_Call) RunAndReturn ¶
type MockContentServiceInterface_GetPublishedByPostType_Call ¶ added in v0.6.0
MockContentServiceInterface_GetPublishedByPostType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedByPostType'
func (*MockContentServiceInterface_GetPublishedByPostType_Call) Return ¶ added in v0.6.0
func (_c *MockContentServiceInterface_GetPublishedByPostType_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetPublishedByPostType_Call
func (*MockContentServiceInterface_GetPublishedByPostType_Call) Run ¶ added in v0.6.0
func (_c *MockContentServiceInterface_GetPublishedByPostType_Call) Run(run func(ctx context.Context, postType string, language string, year int, month int, limit int, offset int)) *MockContentServiceInterface_GetPublishedByPostType_Call
func (*MockContentServiceInterface_GetPublishedByPostType_Call) RunAndReturn ¶ added in v0.6.0
type MockContentServiceInterface_GetPublishedBySlug_Call ¶
MockContentServiceInterface_GetPublishedBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedBySlug'
func (*MockContentServiceInterface_GetPublishedBySlug_Call) Return ¶
func (_c *MockContentServiceInterface_GetPublishedBySlug_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_GetPublishedBySlug_Call
func (*MockContentServiceInterface_GetPublishedBySlug_Call) Run ¶
func (_c *MockContentServiceInterface_GetPublishedBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockContentServiceInterface_GetPublishedBySlug_Call
func (*MockContentServiceInterface_GetPublishedBySlug_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GetPublishedBySlug_Call) RunAndReturn(run func(ctx context.Context, slug string, language string) (*content.Content, error)) *MockContentServiceInterface_GetPublishedBySlug_Call
type MockContentServiceInterface_GetPublished_Call ¶
MockContentServiceInterface_GetPublished_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublished'
func (*MockContentServiceInterface_GetPublished_Call) Return ¶
func (_c *MockContentServiceInterface_GetPublished_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetPublished_Call
func (*MockContentServiceInterface_GetPublished_Call) Run ¶
func (_c *MockContentServiceInterface_GetPublished_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentServiceInterface_GetPublished_Call
func (*MockContentServiceInterface_GetPublished_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GetPublished_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.Content, error)) *MockContentServiceInterface_GetPublished_Call
type MockContentServiceInterface_GetTranslations_Call ¶
MockContentServiceInterface_GetTranslations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTranslations'
func (*MockContentServiceInterface_GetTranslations_Call) Return ¶
func (_c *MockContentServiceInterface_GetTranslations_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_GetTranslations_Call
func (*MockContentServiceInterface_GetTranslations_Call) Run ¶
func (_c *MockContentServiceInterface_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockContentServiceInterface_GetTranslations_Call
func (*MockContentServiceInterface_GetTranslations_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_GetTranslations_Call) RunAndReturn(run func(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)) *MockContentServiceInterface_GetTranslations_Call
type MockContentServiceInterface_ListByFilters_Call ¶
MockContentServiceInterface_ListByFilters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByFilters'
func (*MockContentServiceInterface_ListByFilters_Call) Return ¶
func (_c *MockContentServiceInterface_ListByFilters_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_ListByFilters_Call
func (*MockContentServiceInterface_ListByFilters_Call) Run ¶
func (_c *MockContentServiceInterface_ListByFilters_Call) Run(run func(ctx context.Context, userID int, filters content.ContentFilters)) *MockContentServiceInterface_ListByFilters_Call
func (*MockContentServiceInterface_ListByFilters_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_ListByFilters_Call) RunAndReturn(run func(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)) *MockContentServiceInterface_ListByFilters_Call
type MockContentServiceInterface_SearchPublished_Call ¶
MockContentServiceInterface_SearchPublished_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchPublished'
func (*MockContentServiceInterface_SearchPublished_Call) Return ¶
func (_c *MockContentServiceInterface_SearchPublished_Call) Return(contents []*content.Content, err error) *MockContentServiceInterface_SearchPublished_Call
func (*MockContentServiceInterface_SearchPublished_Call) Run ¶
func (_c *MockContentServiceInterface_SearchPublished_Call) Run(run func(ctx context.Context, query string, limit int)) *MockContentServiceInterface_SearchPublished_Call
func (*MockContentServiceInterface_SearchPublished_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_SearchPublished_Call) RunAndReturn(run func(ctx context.Context, query string, limit int) ([]*content.Content, error)) *MockContentServiceInterface_SearchPublished_Call
type MockContentServiceInterface_SetSystemFields_Call ¶
MockContentServiceInterface_SetSystemFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSystemFields'
func (*MockContentServiceInterface_SetSystemFields_Call) Return ¶
func (_c *MockContentServiceInterface_SetSystemFields_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_SetSystemFields_Call
func (*MockContentServiceInterface_SetSystemFields_Call) Run ¶
func (_c *MockContentServiceInterface_SetSystemFields_Call) Run(run func(ctx context.Context, contentID int, systemFields map[string]any)) *MockContentServiceInterface_SetSystemFields_Call
func (*MockContentServiceInterface_SetSystemFields_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_SetSystemFields_Call) RunAndReturn(run func(ctx context.Context, contentID int, systemFields map[string]any) (*content.Content, error)) *MockContentServiceInterface_SetSystemFields_Call
type MockContentServiceInterface_Update_Call ¶
MockContentServiceInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockContentServiceInterface_Update_Call) Return ¶
func (_c *MockContentServiceInterface_Update_Call) Return(content1 *content.Content, err error) *MockContentServiceInterface_Update_Call
func (*MockContentServiceInterface_Update_Call) Run ¶
func (_c *MockContentServiceInterface_Update_Call) Run(run func(ctx context.Context, id int, userID int, role string, req content.UpdateContentRequest)) *MockContentServiceInterface_Update_Call
func (*MockContentServiceInterface_Update_Call) RunAndReturn ¶
func (_c *MockContentServiceInterface_Update_Call) RunAndReturn(run func(ctx context.Context, id int, userID int, role string, req content.UpdateContentRequest) (*content.Content, error)) *MockContentServiceInterface_Update_Call
type MockDashboardServiceInterface ¶
MockDashboardServiceInterface is an autogenerated mock type for the DashboardServiceInterface type
func NewMockDashboardServiceInterface ¶
func NewMockDashboardServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockDashboardServiceInterface
NewMockDashboardServiceInterface creates a new instance of MockDashboardServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockDashboardServiceInterface) EXPECT ¶
func (_m *MockDashboardServiceInterface) EXPECT() *MockDashboardServiceInterface_Expecter
type MockDashboardServiceInterface_Expecter ¶
type MockDashboardServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDashboardServiceInterface_Expecter) GetStats ¶
func (_e *MockDashboardServiceInterface_Expecter) GetStats(ctx any, userID any) *MockDashboardServiceInterface_GetStats_Call
GetStats is a helper method to define mock.On call
- ctx context.Context
- userID int
type MockDashboardServiceInterface_GetStats_Call ¶
MockDashboardServiceInterface_GetStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStats'
func (*MockDashboardServiceInterface_GetStats_Call) Return ¶
func (_c *MockDashboardServiceInterface_GetStats_Call) Return(stats *dashboard.Stats, err error) *MockDashboardServiceInterface_GetStats_Call
func (*MockDashboardServiceInterface_GetStats_Call) Run ¶
func (_c *MockDashboardServiceInterface_GetStats_Call) Run(run func(ctx context.Context, userID int)) *MockDashboardServiceInterface_GetStats_Call
func (*MockDashboardServiceInterface_GetStats_Call) RunAndReturn ¶
func (_c *MockDashboardServiceInterface_GetStats_Call) RunAndReturn(run func(ctx context.Context, userID int) (*dashboard.Stats, error)) *MockDashboardServiceInterface_GetStats_Call
type MockMediaLister ¶ added in v0.6.0
MockMediaLister is an autogenerated mock type for the MediaLister type
func NewMockMediaLister ¶ added in v0.6.0
func NewMockMediaLister(t interface {
mock.TestingT
Cleanup(func())
}) *MockMediaLister
NewMockMediaLister creates a new instance of MockMediaLister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMediaLister) EXPECT ¶ added in v0.6.0
func (_m *MockMediaLister) EXPECT() *MockMediaLister_Expecter
type MockMediaLister_Expecter ¶ added in v0.6.0
type MockMediaLister_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMediaLister_Expecter) ListByCursor ¶ added in v0.6.0
func (_e *MockMediaLister_Expecter) ListByCursor(ctx any, userID any, limit any, beforeID any) *MockMediaLister_ListByCursor_Call
ListByCursor is a helper method to define mock.On call
- ctx context.Context
- userID int
- limit int
- beforeID int
type MockMediaLister_ListByCursor_Call ¶ added in v0.6.0
MockMediaLister_ListByCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByCursor'
func (*MockMediaLister_ListByCursor_Call) Return ¶ added in v0.6.0
func (_c *MockMediaLister_ListByCursor_Call) Return(medias []*media.Media, err error) *MockMediaLister_ListByCursor_Call
func (*MockMediaLister_ListByCursor_Call) Run ¶ added in v0.6.0
func (_c *MockMediaLister_ListByCursor_Call) Run(run func(ctx context.Context, userID int, limit int, beforeID int)) *MockMediaLister_ListByCursor_Call
func (*MockMediaLister_ListByCursor_Call) RunAndReturn ¶ added in v0.6.0
func (_c *MockMediaLister_ListByCursor_Call) RunAndReturn(run func(ctx context.Context, userID int, limit int, beforeID int) ([]*media.Media, error)) *MockMediaLister_ListByCursor_Call
type MockMediaServiceInterface ¶
MockMediaServiceInterface is an autogenerated mock type for the MediaServiceInterface type
func NewMockMediaServiceInterface ¶
func NewMockMediaServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockMediaServiceInterface
NewMockMediaServiceInterface creates a new instance of MockMediaServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMediaServiceInterface) Delete ¶
func (_mock *MockMediaServiceInterface) Delete(ctx context.Context, id int, userID int, userRole string) error
Delete provides a mock function for the type MockMediaServiceInterface
func (*MockMediaServiceInterface) EXPECT ¶
func (_m *MockMediaServiceInterface) EXPECT() *MockMediaServiceInterface_Expecter
func (*MockMediaServiceInterface) ForceUpload ¶
func (_mock *MockMediaServiceInterface) ForceUpload(ctx context.Context, req media.UploadRequest) (*media.Media, error)
ForceUpload provides a mock function for the type MockMediaServiceInterface
func (*MockMediaServiceInterface) GenerateFromBytes ¶
func (_mock *MockMediaServiceInterface) GenerateFromBytes(ctx context.Context, imageBytes []byte, userID int, altText string, originalFilename string) (*media.Media, error)
GenerateFromBytes provides a mock function for the type MockMediaServiceInterface
func (*MockMediaServiceInterface) GetAll ¶
func (_mock *MockMediaServiceInterface) GetAll(ctx context.Context, limit int, offset int) ([]*media.Media, error)
GetAll provides a mock function for the type MockMediaServiceInterface
func (*MockMediaServiceInterface) GetByID ¶
GetByID provides a mock function for the type MockMediaServiceInterface
func (*MockMediaServiceInterface) SearchMedia ¶
func (_mock *MockMediaServiceInterface) SearchMedia(ctx context.Context, search string, dateFilter string, limit int, offset int) ([]*media.Media, error)
SearchMedia provides a mock function for the type MockMediaServiceInterface
func (*MockMediaServiceInterface) Upload ¶
func (_mock *MockMediaServiceInterface) Upload(ctx context.Context, req media.UploadRequest) (*media.Media, error)
Upload provides a mock function for the type MockMediaServiceInterface
type MockMediaServiceInterface_Delete_Call ¶
MockMediaServiceInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockMediaServiceInterface_Delete_Call) Return ¶
func (_c *MockMediaServiceInterface_Delete_Call) Return(err error) *MockMediaServiceInterface_Delete_Call
func (*MockMediaServiceInterface_Delete_Call) Run ¶
func (_c *MockMediaServiceInterface_Delete_Call) Run(run func(ctx context.Context, id int, userID int, userRole string)) *MockMediaServiceInterface_Delete_Call
func (*MockMediaServiceInterface_Delete_Call) RunAndReturn ¶
func (_c *MockMediaServiceInterface_Delete_Call) RunAndReturn(run func(ctx context.Context, id int, userID int, userRole string) error) *MockMediaServiceInterface_Delete_Call
type MockMediaServiceInterface_Expecter ¶
type MockMediaServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMediaServiceInterface_Expecter) Delete ¶
func (_e *MockMediaServiceInterface_Expecter) Delete(ctx any, id any, userID any, userRole any) *MockMediaServiceInterface_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int
- userID int
- userRole string
func (*MockMediaServiceInterface_Expecter) ForceUpload ¶
func (_e *MockMediaServiceInterface_Expecter) ForceUpload(ctx any, req any) *MockMediaServiceInterface_ForceUpload_Call
ForceUpload is a helper method to define mock.On call
- ctx context.Context
- req media.UploadRequest
func (*MockMediaServiceInterface_Expecter) GenerateFromBytes ¶
func (_e *MockMediaServiceInterface_Expecter) GenerateFromBytes(ctx any, imageBytes any, userID any, altText any, originalFilename any) *MockMediaServiceInterface_GenerateFromBytes_Call
GenerateFromBytes is a helper method to define mock.On call
- ctx context.Context
- imageBytes []byte
- userID int
- altText string
- originalFilename string
func (*MockMediaServiceInterface_Expecter) GetAll ¶
func (_e *MockMediaServiceInterface_Expecter) GetAll(ctx any, limit any, offset any) *MockMediaServiceInterface_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockMediaServiceInterface_Expecter) GetByID ¶
func (_e *MockMediaServiceInterface_Expecter) GetByID(ctx any, id any) *MockMediaServiceInterface_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockMediaServiceInterface_Expecter) SearchMedia ¶
func (_e *MockMediaServiceInterface_Expecter) SearchMedia(ctx any, search any, dateFilter any, limit any, offset any) *MockMediaServiceInterface_SearchMedia_Call
SearchMedia is a helper method to define mock.On call
- ctx context.Context
- search string
- dateFilter string
- limit int
- offset int
func (*MockMediaServiceInterface_Expecter) Upload ¶
func (_e *MockMediaServiceInterface_Expecter) Upload(ctx any, req any) *MockMediaServiceInterface_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- req media.UploadRequest
type MockMediaServiceInterface_ForceUpload_Call ¶
MockMediaServiceInterface_ForceUpload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceUpload'
func (*MockMediaServiceInterface_ForceUpload_Call) Return ¶
func (_c *MockMediaServiceInterface_ForceUpload_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_ForceUpload_Call
func (*MockMediaServiceInterface_ForceUpload_Call) Run ¶
func (_c *MockMediaServiceInterface_ForceUpload_Call) Run(run func(ctx context.Context, req media.UploadRequest)) *MockMediaServiceInterface_ForceUpload_Call
func (*MockMediaServiceInterface_ForceUpload_Call) RunAndReturn ¶
func (_c *MockMediaServiceInterface_ForceUpload_Call) RunAndReturn(run func(ctx context.Context, req media.UploadRequest) (*media.Media, error)) *MockMediaServiceInterface_ForceUpload_Call
type MockMediaServiceInterface_GenerateFromBytes_Call ¶
MockMediaServiceInterface_GenerateFromBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateFromBytes'
func (*MockMediaServiceInterface_GenerateFromBytes_Call) Return ¶
func (_c *MockMediaServiceInterface_GenerateFromBytes_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_GenerateFromBytes_Call
func (*MockMediaServiceInterface_GenerateFromBytes_Call) Run ¶
func (_c *MockMediaServiceInterface_GenerateFromBytes_Call) Run(run func(ctx context.Context, imageBytes []byte, userID int, altText string, originalFilename string)) *MockMediaServiceInterface_GenerateFromBytes_Call
func (*MockMediaServiceInterface_GenerateFromBytes_Call) RunAndReturn ¶
type MockMediaServiceInterface_GetAll_Call ¶
MockMediaServiceInterface_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockMediaServiceInterface_GetAll_Call) Return ¶
func (_c *MockMediaServiceInterface_GetAll_Call) Return(medias []*media.Media, err error) *MockMediaServiceInterface_GetAll_Call
func (*MockMediaServiceInterface_GetAll_Call) Run ¶
func (_c *MockMediaServiceInterface_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockMediaServiceInterface_GetAll_Call
func (*MockMediaServiceInterface_GetAll_Call) RunAndReturn ¶
func (_c *MockMediaServiceInterface_GetAll_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*media.Media, error)) *MockMediaServiceInterface_GetAll_Call
type MockMediaServiceInterface_GetByID_Call ¶
MockMediaServiceInterface_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockMediaServiceInterface_GetByID_Call) Return ¶
func (_c *MockMediaServiceInterface_GetByID_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_GetByID_Call
func (*MockMediaServiceInterface_GetByID_Call) Run ¶
func (_c *MockMediaServiceInterface_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockMediaServiceInterface_GetByID_Call
func (*MockMediaServiceInterface_GetByID_Call) RunAndReturn ¶
func (_c *MockMediaServiceInterface_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*media.Media, error)) *MockMediaServiceInterface_GetByID_Call
type MockMediaServiceInterface_SearchMedia_Call ¶
MockMediaServiceInterface_SearchMedia_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchMedia'
func (*MockMediaServiceInterface_SearchMedia_Call) Return ¶
func (_c *MockMediaServiceInterface_SearchMedia_Call) Return(medias []*media.Media, err error) *MockMediaServiceInterface_SearchMedia_Call
func (*MockMediaServiceInterface_SearchMedia_Call) Run ¶
func (_c *MockMediaServiceInterface_SearchMedia_Call) Run(run func(ctx context.Context, search string, dateFilter string, limit int, offset int)) *MockMediaServiceInterface_SearchMedia_Call
func (*MockMediaServiceInterface_SearchMedia_Call) RunAndReturn ¶
type MockMediaServiceInterface_Upload_Call ¶
MockMediaServiceInterface_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*MockMediaServiceInterface_Upload_Call) Return ¶
func (_c *MockMediaServiceInterface_Upload_Call) Return(media1 *media.Media, err error) *MockMediaServiceInterface_Upload_Call
func (*MockMediaServiceInterface_Upload_Call) Run ¶
func (_c *MockMediaServiceInterface_Upload_Call) Run(run func(ctx context.Context, req media.UploadRequest)) *MockMediaServiceInterface_Upload_Call
func (*MockMediaServiceInterface_Upload_Call) RunAndReturn ¶
func (_c *MockMediaServiceInterface_Upload_Call) RunAndReturn(run func(ctx context.Context, req media.UploadRequest) (*media.Media, error)) *MockMediaServiceInterface_Upload_Call
type MockPostTypeServiceInterface ¶
MockPostTypeServiceInterface is an autogenerated mock type for the PostTypeServiceInterface type
func NewMockPostTypeServiceInterface ¶
func NewMockPostTypeServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockPostTypeServiceInterface
NewMockPostTypeServiceInterface creates a new instance of MockPostTypeServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockPostTypeServiceInterface) EXPECT ¶
func (_m *MockPostTypeServiceInterface) EXPECT() *MockPostTypeServiceInterface_Expecter
func (*MockPostTypeServiceInterface) GetAll ¶
func (_mock *MockPostTypeServiceInterface) GetAll() []posttype.PostType
GetAll provides a mock function for the type MockPostTypeServiceInterface
func (*MockPostTypeServiceInterface) GetBySlug ¶
func (_mock *MockPostTypeServiceInterface) GetBySlug(slug string) (posttype.PostType, error)
GetBySlug provides a mock function for the type MockPostTypeServiceInterface
func (*MockPostTypeServiceInterface) GetUserFields ¶
func (_mock *MockPostTypeServiceInterface) GetUserFields() []customfield.FieldSchema
GetUserFields provides a mock function for the type MockPostTypeServiceInterface
func (*MockPostTypeServiceInterface) GetUserSystemFields ¶
func (_mock *MockPostTypeServiceInterface) GetUserSystemFields() []customfield.FieldSchema
GetUserSystemFields provides a mock function for the type MockPostTypeServiceInterface
type MockPostTypeServiceInterface_Expecter ¶
type MockPostTypeServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPostTypeServiceInterface_Expecter) GetAll ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetAll() *MockPostTypeServiceInterface_GetAll_Call
GetAll is a helper method to define mock.On call
func (*MockPostTypeServiceInterface_Expecter) GetBySlug ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetBySlug(slug any) *MockPostTypeServiceInterface_GetBySlug_Call
GetBySlug is a helper method to define mock.On call
- slug string
func (*MockPostTypeServiceInterface_Expecter) GetUserFields ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetUserFields() *MockPostTypeServiceInterface_GetUserFields_Call
GetUserFields is a helper method to define mock.On call
func (*MockPostTypeServiceInterface_Expecter) GetUserSystemFields ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetUserSystemFields() *MockPostTypeServiceInterface_GetUserSystemFields_Call
GetUserSystemFields is a helper method to define mock.On call
func (*MockPostTypeServiceInterface_Expecter) Register ¶
func (_e *MockPostTypeServiceInterface_Expecter) Register(pt any) *MockPostTypeServiceInterface_Register_Call
Register is a helper method to define mock.On call
- pt posttype.PostType
type MockPostTypeServiceInterface_GetAll_Call ¶
MockPostTypeServiceInterface_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockPostTypeServiceInterface_GetAll_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetAll_Call) Return(postTypes []posttype.PostType) *MockPostTypeServiceInterface_GetAll_Call
func (*MockPostTypeServiceInterface_GetAll_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetAll_Call) Run(run func()) *MockPostTypeServiceInterface_GetAll_Call
func (*MockPostTypeServiceInterface_GetAll_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetAll_Call) RunAndReturn(run func() []posttype.PostType) *MockPostTypeServiceInterface_GetAll_Call
type MockPostTypeServiceInterface_GetBySlug_Call ¶
MockPostTypeServiceInterface_GetBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySlug'
func (*MockPostTypeServiceInterface_GetBySlug_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Return(postType posttype.PostType, err error) *MockPostTypeServiceInterface_GetBySlug_Call
func (*MockPostTypeServiceInterface_GetBySlug_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetBySlug_Call
func (*MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn(run func(slug string) (posttype.PostType, error)) *MockPostTypeServiceInterface_GetBySlug_Call
type MockPostTypeServiceInterface_GetUserFields_Call ¶
MockPostTypeServiceInterface_GetUserFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserFields'
func (*MockPostTypeServiceInterface_GetUserFields_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetUserFields_Call) Return(fieldSchemas []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserFields_Call
func (*MockPostTypeServiceInterface_GetUserFields_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetUserFields_Call) Run(run func()) *MockPostTypeServiceInterface_GetUserFields_Call
func (*MockPostTypeServiceInterface_GetUserFields_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetUserFields_Call) RunAndReturn(run func() []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserFields_Call
type MockPostTypeServiceInterface_GetUserSystemFields_Call ¶
MockPostTypeServiceInterface_GetUserSystemFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserSystemFields'
func (*MockPostTypeServiceInterface_GetUserSystemFields_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetUserSystemFields_Call) Return(fieldSchemas []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserSystemFields_Call
func (*MockPostTypeServiceInterface_GetUserSystemFields_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetUserSystemFields_Call) Run(run func()) *MockPostTypeServiceInterface_GetUserSystemFields_Call
func (*MockPostTypeServiceInterface_GetUserSystemFields_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetUserSystemFields_Call) RunAndReturn(run func() []customfield.FieldSchema) *MockPostTypeServiceInterface_GetUserSystemFields_Call
type MockPostTypeServiceInterface_Register_Call ¶
MockPostTypeServiceInterface_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockPostTypeServiceInterface_Register_Call) Return ¶
func (_c *MockPostTypeServiceInterface_Register_Call) Return(err error) *MockPostTypeServiceInterface_Register_Call
func (*MockPostTypeServiceInterface_Register_Call) Run ¶
func (_c *MockPostTypeServiceInterface_Register_Call) Run(run func(pt posttype.PostType)) *MockPostTypeServiceInterface_Register_Call
func (*MockPostTypeServiceInterface_Register_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_Register_Call) RunAndReturn(run func(pt posttype.PostType) error) *MockPostTypeServiceInterface_Register_Call
type MockTextGenerationService ¶
MockTextGenerationService is an autogenerated mock type for the TextGenerationService type
func NewMockTextGenerationService ¶
func NewMockTextGenerationService(t interface {
mock.TestingT
Cleanup(func())
}) *MockTextGenerationService
NewMockTextGenerationService creates a new instance of MockTextGenerationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTextGenerationService) EXPECT ¶
func (_m *MockTextGenerationService) EXPECT() *MockTextGenerationService_Expecter
func (*MockTextGenerationService) EnhanceText ¶
func (_mock *MockTextGenerationService) EnhanceText(ctx context.Context, content string, format string, mediaContext string) (string, error)
EnhanceText provides a mock function for the type MockTextGenerationService
type MockTextGenerationService_EnhanceText_Call ¶
MockTextGenerationService_EnhanceText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnhanceText'
func (*MockTextGenerationService_EnhanceText_Call) Return ¶
func (_c *MockTextGenerationService_EnhanceText_Call) Return(s string, err error) *MockTextGenerationService_EnhanceText_Call
func (*MockTextGenerationService_EnhanceText_Call) Run ¶
func (_c *MockTextGenerationService_EnhanceText_Call) Run(run func(ctx context.Context, content string, format string, mediaContext string)) *MockTextGenerationService_EnhanceText_Call
func (*MockTextGenerationService_EnhanceText_Call) RunAndReturn ¶
func (_c *MockTextGenerationService_EnhanceText_Call) RunAndReturn(run func(ctx context.Context, content string, format string, mediaContext string) (string, error)) *MockTextGenerationService_EnhanceText_Call
type MockTextGenerationService_Expecter ¶
type MockTextGenerationService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTextGenerationService_Expecter) EnhanceText ¶
func (_e *MockTextGenerationService_Expecter) EnhanceText(ctx any, content any, format any, mediaContext any) *MockTextGenerationService_EnhanceText_Call
EnhanceText is a helper method to define mock.On call
- ctx context.Context
- content string
- format string
- mediaContext string
func (*MockTextGenerationService_Expecter) TranslateText ¶
func (_e *MockTextGenerationService_Expecter) TranslateText(ctx any, content any, sourceLang any, targetLang any, format any) *MockTextGenerationService_TranslateText_Call
TranslateText is a helper method to define mock.On call
- ctx context.Context
- content string
- sourceLang string
- targetLang string
- format string
type MockTextGenerationService_TranslateText_Call ¶
MockTextGenerationService_TranslateText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TranslateText'
func (*MockTextGenerationService_TranslateText_Call) Return ¶
func (_c *MockTextGenerationService_TranslateText_Call) Return(s string, err error) *MockTextGenerationService_TranslateText_Call
func (*MockTextGenerationService_TranslateText_Call) Run ¶
func (_c *MockTextGenerationService_TranslateText_Call) Run(run func(ctx context.Context, content string, sourceLang string, targetLang string, format string)) *MockTextGenerationService_TranslateText_Call
func (*MockTextGenerationService_TranslateText_Call) RunAndReturn ¶
func (_c *MockTextGenerationService_TranslateText_Call) RunAndReturn(run func(ctx context.Context, content string, sourceLang string, targetLang string, format string) (string, error)) *MockTextGenerationService_TranslateText_Call