Documentation ¶
Index ¶
- Constants
- type CreateTaskRequest
- type CreateTaskResponse
- type DeleteTaskRequest
- type DeleteTaskResponse
- type ErrResponse
- type GetTaskRequest
- type GetTaskResponse
- type ListTaskRequest
- type ListTaskResponse
- type OkResponse
- type Storage
- func (s *Storage) CreateTask(name, body string, deadline time.Time) (string, error)
- func (s *Storage) DeleteTask(uuid string) error
- func (s *Storage) GetListTask() (ListTaskResponse, error)
- func (s *Storage) GetTask(uuid string) (Task, error)
- func (s *Storage) UpdateTask(uuid string, name, body *string, status *bool, deadline *time.Time) error
- type Task
- type UpdateTaskRequest
- type UpdateTaskResponse
Constants ¶
View Source
const (
ContentTypeJson = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTaskRequest ¶
type CreateTaskResponse ¶
type CreateTaskResponse struct {
Uuid string `json:"uuid"`
}
type DeleteTaskRequest ¶
type DeleteTaskRequest struct {
Uuid string `json:"uuid"`
}
type DeleteTaskResponse ¶
type DeleteTaskResponse OkResponse
type ErrResponse ¶
type GetTaskRequest ¶
type GetTaskRequest struct {
Uuid string `json:"uuid"`
}
type GetTaskResponse ¶
type GetTaskResponse Task
type ListTaskRequest ¶
type ListTaskRequest struct { }
type ListTaskResponse ¶
type ListTaskResponse struct {
List []Task `json:"list"`
}
type OkResponse ¶
type OkResponse struct {
Code int `json:"code"`
}
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateTask ¶
func (*Storage) DeleteTask ¶
func (*Storage) GetListTask ¶
func (s *Storage) GetListTask() (ListTaskResponse, error)
type UpdateTaskRequest ¶
type UpdateTaskResponse ¶
type UpdateTaskResponse OkResponse
Click to show internal directories.
Click to hide internal directories.