Documentation ¶
Index ¶
- type MockPostsRepository
- func (m *MockPostsRepository) CreatePost(ctx context.Context, post *domain.PostCreate) (*domain.Post, error)
- func (m *MockPostsRepository) GetPost(ctx context.Context, postID string) (*domain.Post, error)
- func (m *MockPostsRepository) GetPosts(ctx context.Context) ([]*domain.Post, error)
- func (m *MockPostsRepository) UpdatePost(ctx context.Context, post *domain.Post) (*domain.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPostsRepository ¶
type MockPostsRepository struct { CreatePostFn func(ctx context.Context, post *domain.PostCreate) (*domain.Post, error) GetPostFn func(ctx context.Context, id string) (*domain.Post, error) GetPostsFn func(ctx context.Context) ([]*domain.Post, error) UpdatePostFn func(ctx context.Context, post *domain.Post) (*domain.Post, error) }
func (*MockPostsRepository) CreatePost ¶
func (m *MockPostsRepository) CreatePost(ctx context.Context, post *domain.PostCreate) (*domain.Post, error)
func (*MockPostsRepository) UpdatePost ¶
Click to show internal directories.
Click to hide internal directories.