status

package
v0.0.0-...-ce79110 Latest Latest
Warning

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

Go to latest
Published: Nov 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 PostgresRepository

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

func NewPostgres

func NewPostgres(db *sql.DB) *PostgresRepository

func (*PostgresRepository) CreateStatus

func (r *PostgresRepository) CreateStatus(ctx context.Context, status StatusForCreate) (err error)

func (*PostgresRepository) DeleteStatus

func (r *PostgresRepository) DeleteStatus(ctx context.Context, statusID string) (err error)

func (*PostgresRepository) ListAllStatus

func (*PostgresRepository) UpdateStatus

func (r *PostgresRepository) UpdateStatus(ctx context.Context, statusID string, status StatusForUpdate) (err error)

type Status

type Status struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type StatusForCreate

type StatusForCreate struct {
	Name string `json:"name"`
}

type StatusForUpdate

type StatusForUpdate struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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