Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { CreatePost(ctx context.Context, post *entity.Post) (int, error) RecoverPosts(ctx context.Context) ([]model.Post, error) RecoverPost(ctx context.Context, id int) (*model.Post, error) ChangePost(ctx context.Context, post *entity.Post) (int64, error) RemovePost(ctx context.Context, id int) (int64, error) RecoverImageMetadata(ctx context.Context, uuid string) (*model.Image, error) RecoverAllImageMetadata(ctx context.Context, limit int) ( []model.Image, error, ) CreateImageMetadata(ctx context.Context, image *entity.Image) error RemoveImage(ctx context.Context, uuid string) (int64, error) }
Service is the business logic of the application.
func New ¶
func New(repo repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.