entity

package
v0.0.0-...-9803990 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo struct {
	ID          int          `json:"id" db:"id"`
	Task        string       `json:"task" db:"task"`
	Status      TodoStatus   `json:"status" db:"status"`
	DueDate     sql.NullTime `json:"due_date" db:"due_date"`
	CompletedAt sql.NullTime `json:"completed_at" db:"completed_at"`
	CreatedAt   time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt   time.Time    `json:"updated_at" db:"updated_at"`
}

func (*Todo) Show

func (t *Todo) Show()

type TodoStatus

type TodoStatus string
const (
	TodoStatusPending    TodoStatus = "pending"
	TodoStatusDone       TodoStatus = "done"
	TodoStatusInProgress TodoStatus = "in_progress"
)

func (*TodoStatus) Scan

func (s *TodoStatus) Scan(v interface{}) error

Scan implements the sql.Scanner interface

func (*TodoStatus) String

func (s *TodoStatus) String() string

String returns the string version of TodoStatus.

func (*TodoStatus) Value

func (s *TodoStatus) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

Jump to

Keyboard shortcuts

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