task

package
v0.0.0-...-c4d8e50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID      int64     `json:"-" db:"id" redis:"id"`
	Title   string    `validate:"required,gt=2" json:"title" db:"title" redis:"title"`
	Created time.Time `json:"created" db:"created" redis:"created"`
	Updated time.Time `json:"updated" db:"updated" redis:"updated"`
}

type TaskRepository

type TaskRepository interface {
	Create(c context.Context, task *Task) error
	GetByID(c context.Context, id int64) (Task, error)
}

type TaskUsecase

type TaskUsecase interface {
	Create(c context.Context, task *Task) error
	GetByID(c context.Context, id int64) (Task, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL