mock

package
v0.0.0-...-375f364 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	mock.Mock
}

AuthService is an autogenerated mock type for the AuthService type

func (*AuthService) CreateAuth

func (_m *AuthService) CreateAuth(ctx context.Context, auth *pa.Auth) error

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

func (_m *AuthService) FindAuthByID(ctx context.Context, id int) (*pa.Auth, error)

FindAuthByID provides a mock function with given fields: ctx, id

func (*AuthService) FindAuths

func (_m *AuthService) FindAuths(ctx context.Context, filter pa.AuthFilter) ([]*pa.Auth, int, error)

FindAuths provides a mock function with given fields: ctx, filter

type BlogService

type BlogService struct {
	mock.Mock
}

BlogService is an autogenerated mock type for the BlogService type

func (*BlogService) CreateBlog

func (_m *BlogService) CreateBlog(ctx context.Context, blog *pa.Blog) error

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

func (_m *BlogService) FindBlogByID(ctx context.Context, id int) (*pa.Blog, error)

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

type CommentService struct {
	mock.Mock
}

CommentService is an autogenerated mock type for the CommentService type

func (*CommentService) CreateComment

func (_m *CommentService) CreateComment(ctx context.Context, blog *pa.Comment) error

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

func (_m *CommentService) FindCommentByID(ctx context.Context, id int) (*pa.Comment, error)

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

type EmailService struct {
	mock.Mock
}

EmailService is an autogenerated mock type for the EmailService type

func (*EmailService) SendEmail

func (_m *EmailService) SendEmail(to []string, body string, subject string) error

SendEmail provides a mock function with given fields: to, body, subject

type EventHandler

type EventHandler struct {
	mock.Mock
}

EventHandler is an autogenerated mock type for the EventHandler type

func (*EventHandler) Execute

func (_m *EventHandler) Execute(ctx context.Context, event pa.Event) error

Execute provides a mock function with given fields: ctx, event

type EventService

type EventService struct {
	mock.Mock
}

EventService is an autogenerated mock type for the EventService type

func (*EventService) Push

func (_m *EventService) Push(ctx context.Context, event pa.Event) error

Push provides a mock function with given fields: ctx, event

func (*EventService) RegisterHandler

func (_m *EventService) RegisterHandler(topic string, handler pa.EventHandler)

RegisterHandler provides a mock function with given fields: topic, handler

type Payload

type Payload struct {
	mock.Mock
}

Payload is an autogenerated mock type for the Payload type

type SubBlogService

type SubBlogService struct {
	mock.Mock
}

SubBlogService is an autogenerated mock type for the SubBlogService type

func (*SubBlogService) CreateSubBlog

func (_m *SubBlogService) CreateSubBlog(ctx context.Context, blog *pa.SubBlog) error

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

func (_m *SubBlogService) FindSubBlogByID(ctx context.Context, id int) (*pa.Blog, error)

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

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func (*UserService) CreateUser

func (_m *UserService) CreateUser(ctx context.Context, user *pa.User) error

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

func (_m *UserService) FindUserByID(ctx context.Context, id int) (*pa.User, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL