Documentation ¶
Index ¶
- type Service
- func (s *Service) AddTask(ctx context.Context, task *models.Task) (string, error)
- func (s *Service) Close(ctx context.Context) error
- func (s *Service) DeleteTask(ctx context.Context, id string) error
- func (s *Service) GetTask(ctx context.Context, id string) (*models.Task, error)
- func (s *Service) UpdateTask(ctx context.Context, task *models.Task) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service initializes our database instance
func NewService ¶
NewService creates a connection to our database
func (*Service) DeleteTask ¶
DeleteTask deletes task from database
Click to show internal directories.
Click to hide internal directories.