Documentation ¶
Index ¶
- func NewCreatePostEndpoint(s Service) endpoint.Endpoint
- func NewGetPostsEndpoint(s Service) endpoint.Endpoint
- func NewUpdateNewsLineEndpoint(s Service) endpoint.Endpoint
- func NewUpdateNewsLinesByPostEndpoint(s Service) endpoint.Endpoint
- type CreatePostRequest
- type CreatePostResponse
- type GetPostsRequest
- type GetPostsResponse
- type Service
- type Set
- type UpdateNewsLinesByPostRequest
- type UpdateNewsLinesRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreatePostEndpoint ¶
func NewGetPostsEndpoint ¶
Types ¶
type CreatePostRequest ¶
type CreatePostResponse ¶
func (CreatePostResponse) Failed ¶
func (p CreatePostResponse) Failed() error
Failed implements endpoint.Failer.
type GetPostsRequest ¶
type GetPostsResponse ¶
func (GetPostsResponse) Failed ¶
func (p GetPostsResponse) Failed() error
Failed implements endpoint.Failer.
type Service ¶
type Service interface { CreatePost( ctx context.Context, msg domain.Post, ) (domain.Post, error) GetPosts( ctx context.Context, profileID, recipientID uuid.UUID, offset, limit int, ) ([]domain.Post, error) UpdateNewsLines(ctx context.Context, followers []uuid.UUID) error UpdateNewsLinesByPost(context.Context, domain.Post) error }
type Set ¶
type UpdateNewsLinesRequest ¶
type UpdateNewsLinesRequest struct {
Followers []uuid.UUID
}
Click to show internal directories.
Click to hide internal directories.