repository

package
v0.0.0-...-ffe4551 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(database *pgxpool.Pool) *Repository

func (*Repository) CreateToDos

func (r *Repository) CreateToDos(ctx context.Context, creates []ToDo) ([]ToDo, error)

func (*Repository) ListToDos

func (r *Repository) ListToDos(ctx context.Context, ids []string, cursor string, limit int32) ([]ToDo, error)

type ToDo

type ToDo struct {
	ID            string
	Message       string
	Details       string
	DueDate       time.Time
	Priority      string
	LevelOfEffort string

	ToDoStatuses []ToDoStatus

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time
}

func (ToDo) IsZero

func (t ToDo) IsZero() bool

type ToDoStatus

type ToDoStatus struct {
	ID     string
	Status string

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time
}

Jump to

Keyboard shortcuts

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