task

package
v0.0.0-...-14f1b0a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 3 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        int          `json:"id"`
	Name      string       `json:"name"`
	CreatedAt time.Time    `json:"createdAt"`
	UpdatedAt sql.NullTime `json:"updatedAt"`
}

func NewTask

func NewTask(id int, name string) Task

type TaskRepository

type TaskRepository interface {
	GetAll(ctx context.Context) ([]Task, error)
	Get(ctx context.Context, id int) (*Task, error)
	Create(ctx context.Context, task Task) (int, error)
	Update(ctx context.Context, task Task) (*Task, error)
	Delete(ctx context.Context, id int) (bool, error)
	Finalize()
}

Jump to

Keyboard shortcuts

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