Documentation
¶
Index ¶
- type InMemoryPostRepository
- type PostRepository
- type Publisher
- type Service
- func (s Service) CreatePost(ctx context.Context, post domain.Post) (domain.Post, error)
- func (s Service) GetPosts(ctx context.Context, authorID, followerID uuid.UUID, offset, limit int) ([]domain.Post, error)
- func (s Service) UpdateNewsLines(ctx context.Context, followers []uuid.UUID) error
- func (s Service) UpdateNewsLinesByPost(ctx context.Context, post domain.Post) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryPostRepository ¶
type PostRepository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( postRepository PostRepository, inmemoryPostsRepository InMemoryPostRepository, profileRepository profile.Repository, publisher Publisher, ) *Service
func (Service) CreatePost ¶
func (Service) UpdateNewsLines ¶
Click to show internal directories.
Click to hide internal directories.