Documentation ¶
Index ¶
- func GenerateRSAKeyPair() (string, string)
- func SetupGormMock(t *testing.T) (*sql.DB, *gorm.DB, sqlmock.Sqlmock)
- type ArticleUseCase
- func (_m *ArticleUseCase) Create(c context.Context, model articles.CreateModel) utils.Response
- func (_m *ArticleUseCase) Delete(c context.Context, model articles.DeleteModel) utils.Response
- func (_m *ArticleUseCase) FindAll(c context.Context, model articles.FindAllModel) utils.Response
- func (_m *ArticleUseCase) Get(c context.Context, model articles.GetModel) utils.Response
- func (_m *ArticleUseCase) Save(c context.Context, model articles.SaveModel) utils.Response
- type IJwtAuth
- type UserUseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRSAKeyPair ¶
Types ¶
type ArticleUseCase ¶
ArticleUseCase is an autogenerated mock type for the ArticleUseCase type
func (*ArticleUseCase) Create ¶
func (_m *ArticleUseCase) Create(c context.Context, model articles.CreateModel) utils.Response
Create provides a mock function with given fields: c, model
func (*ArticleUseCase) Delete ¶
func (_m *ArticleUseCase) Delete(c context.Context, model articles.DeleteModel) utils.Response
Delete provides a mock function with given fields: c, model
func (*ArticleUseCase) FindAll ¶
func (_m *ArticleUseCase) FindAll(c context.Context, model articles.FindAllModel) utils.Response
FindAll provides a mock function with given fields: c, model
type IJwtAuth ¶
IJwtAuth is an autogenerated mock type for the IJwtAuth type
func (*IJwtAuth) JwtAuthMiddleware ¶
func (_m *IJwtAuth) JwtAuthMiddleware() gin.HandlerFunc
JwtAuthMiddleware provides a mock function with given fields:
type UserUseCase ¶
UserUseCase is an autogenerated mock type for the UserUseCase type
func (*UserUseCase) GetProfile ¶
func (_m *UserUseCase) GetProfile(c context.Context, model users.GetProfileModel) utils.Response
GetProfile provides a mock function with given fields: c, model
func (*UserUseCase) Login ¶
func (_m *UserUseCase) Login(c context.Context, model users.LoginModel) utils.Response
Login provides a mock function with given fields: c, model
func (*UserUseCase) Register ¶
func (_m *UserUseCase) Register(c context.Context, model users.RegisterModel) utils.Response
Register provides a mock function with given fields: c, model
Click to show internal directories.
Click to hide internal directories.