Documentation ¶
Index ¶
- type AuthService
- func (_m *AuthService) CreateAuth(ctx context.Context, auth *pa.Auth) error
- func (_m *AuthService) DeleteAuth(ctx context.Context, id int) error
- func (_m *AuthService) FindAuthByID(ctx context.Context, id int) (*pa.Auth, error)
- func (_m *AuthService) FindAuths(ctx context.Context, filter pa.AuthFilter) ([]*pa.Auth, int, error)
- type BlogService
- func (_m *BlogService) CreateBlog(ctx context.Context, blog *pa.Blog) error
- func (_m *BlogService) DeleteBlog(ctx context.Context, id int) error
- func (_m *BlogService) FindBlogByID(ctx context.Context, id int) (*pa.Blog, error)
- func (_m *BlogService) FindBlogs(ctx context.Context, filter pa.BlogFilter) ([]*pa.Blog, int, error)
- func (_m *BlogService) UpdateBlog(ctx context.Context, update pa.BlogUpdate) (*pa.Blog, error)
- type CommentService
- func (_m *CommentService) CreateComment(ctx context.Context, blog *pa.Comment) error
- func (_m *CommentService) DeleteComment(ctx context.Context, id int) error
- func (_m *CommentService) FindCommentByID(ctx context.Context, id int) (*pa.Comment, error)
- func (_m *CommentService) FindComments(ctx context.Context, filter pa.CommentFilter) ([]*pa.Comment, int, error)
- func (_m *CommentService) UpdateComment(ctx context.Context, update pa.CommentUpdate) (*pa.Comment, error)
- type EmailService
- type EventHandler
- type EventService
- type Payload
- type SubBlogService
- func (_m *SubBlogService) CreateSubBlog(ctx context.Context, blog *pa.SubBlog) error
- func (_m *SubBlogService) DeleteSubBlog(ctx context.Context, id int) error
- func (_m *SubBlogService) FindSubBlogByID(ctx context.Context, id int) (*pa.Blog, error)
- func (_m *SubBlogService) FindSubBlogs(ctx context.Context, filter pa.SubBlogFilter) ([]*pa.Blog, int, error)
- func (_m *SubBlogService) UpdateSubBlog(ctx context.Context, update pa.SubBlogUpdate) (*pa.Blog, error)
- type UserService
- func (_m *UserService) CreateUser(ctx context.Context, user *pa.User) error
- func (_m *UserService) DeleteUser(ctx context.Context, id int) error
- func (_m *UserService) FindUserByID(ctx context.Context, id int) (*pa.User, error)
- func (_m *UserService) FindUsers(ctx context.Context, filter pa.UserFilter) ([]*pa.User, int, error)
- func (_m *UserService) UpdateUser(ctx context.Context, update pa.UserUpdate) (*pa.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService is an autogenerated mock type for the AuthService type
func (*AuthService) CreateAuth ¶
CreateAuth provides a mock function with given fields: ctx, auth
func (*AuthService) DeleteAuth ¶
func (_m *AuthService) DeleteAuth(ctx context.Context, id int) error
DeleteAuth provides a mock function with given fields: ctx, id
func (*AuthService) FindAuthByID ¶
FindAuthByID provides a mock function with given fields: ctx, id
type BlogService ¶
BlogService is an autogenerated mock type for the BlogService type
func (*BlogService) CreateBlog ¶
CreateBlog provides a mock function with given fields: ctx, blog
func (*BlogService) DeleteBlog ¶
func (_m *BlogService) DeleteBlog(ctx context.Context, id int) error
DeleteBlog provides a mock function with given fields: ctx, id
func (*BlogService) FindBlogByID ¶
FindBlogByID provides a mock function with given fields: ctx, id
func (*BlogService) FindBlogs ¶
func (_m *BlogService) FindBlogs(ctx context.Context, filter pa.BlogFilter) ([]*pa.Blog, int, error)
FindBlogs provides a mock function with given fields: ctx, filter
func (*BlogService) UpdateBlog ¶
func (_m *BlogService) UpdateBlog(ctx context.Context, update pa.BlogUpdate) (*pa.Blog, error)
UpdateBlog provides a mock function with given fields: ctx, update
type CommentService ¶
CommentService is an autogenerated mock type for the CommentService type
func (*CommentService) CreateComment ¶
CreateComment provides a mock function with given fields: ctx, blog
func (*CommentService) DeleteComment ¶
func (_m *CommentService) DeleteComment(ctx context.Context, id int) error
DeleteComment provides a mock function with given fields: ctx, id
func (*CommentService) FindCommentByID ¶
FindCommentByID provides a mock function with given fields: ctx, id
func (*CommentService) FindComments ¶
func (_m *CommentService) FindComments(ctx context.Context, filter pa.CommentFilter) ([]*pa.Comment, int, error)
FindComments provides a mock function with given fields: ctx, filter
func (*CommentService) UpdateComment ¶
func (_m *CommentService) UpdateComment(ctx context.Context, update pa.CommentUpdate) (*pa.Comment, error)
UpdateComment provides a mock function with given fields: ctx, update
type EmailService ¶
EmailService is an autogenerated mock type for the EmailService type
type EventHandler ¶
EventHandler is an autogenerated mock type for the EventHandler type
type EventService ¶
EventService is an autogenerated mock type for the EventService type
func (*EventService) RegisterHandler ¶
func (_m *EventService) RegisterHandler(topic string, handler pa.EventHandler)
RegisterHandler provides a mock function with given fields: topic, handler
type SubBlogService ¶
SubBlogService is an autogenerated mock type for the SubBlogService type
func (*SubBlogService) CreateSubBlog ¶
CreateSubBlog provides a mock function with given fields: ctx, blog
func (*SubBlogService) DeleteSubBlog ¶
func (_m *SubBlogService) DeleteSubBlog(ctx context.Context, id int) error
DeleteSubBlog provides a mock function with given fields: ctx, id
func (*SubBlogService) FindSubBlogByID ¶
FindSubBlogByID provides a mock function with given fields: ctx, id
func (*SubBlogService) FindSubBlogs ¶
func (_m *SubBlogService) FindSubBlogs(ctx context.Context, filter pa.SubBlogFilter) ([]*pa.Blog, int, error)
FindSubBlogs provides a mock function with given fields: ctx, filter
func (*SubBlogService) UpdateSubBlog ¶
func (_m *SubBlogService) UpdateSubBlog(ctx context.Context, update pa.SubBlogUpdate) (*pa.Blog, error)
UpdateSubBlog provides a mock function with given fields: ctx, update
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func (*UserService) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*UserService) DeleteUser ¶
func (_m *UserService) DeleteUser(ctx context.Context, id int) error
DeleteUser provides a mock function with given fields: ctx, id
func (*UserService) FindUserByID ¶
FindUserByID provides a mock function with given fields: ctx, id
func (*UserService) FindUsers ¶
func (_m *UserService) FindUsers(ctx context.Context, filter pa.UserFilter) ([]*pa.User, int, error)
FindUsers provides a mock function with given fields: ctx, filter
func (*UserService) UpdateUser ¶
func (_m *UserService) UpdateUser(ctx context.Context, update pa.UserUpdate) (*pa.User, error)
UpdateUser provides a mock function with given fields: ctx, update