Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(repo Repository) *service
Types ¶
type Repository ¶
type Repository interface { Create(ctx context.Context, post *model.Post) error Get(ctx context.Context, id string) (*model.Post, error) GetBy(ctx context.Context, filter interface{}) ([]model.Post, error) Update(ctx context.Context, post *model.Post) error Delete(ctx context.Context, id string) error }
Click to show internal directories.
Click to hide internal directories.