address

package
v0.0.0-...-fd03070 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ID         string
	Street     string
	Locality   string
	Region     string
	PostalCode string
	Country    string
	CreatedAt  *time.Time
	UpdatedAt  *time.Time
	DeletedAt  *time.Time
}

type Repository

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

func NewRepository

func NewRepository(pool *pgxpool.Pool) *Repository

func (*Repository) Insert

func (r *Repository) Insert(ctx context.Context, addr *Address) error

func (*Repository) SelectByID

func (r *Repository) SelectByID(ctx context.Context, id string) (*Address, error)

type Service

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

func NewService

func NewService(r *Repository) *Service

func (*Service) Create

func (s *Service) Create()

func (*Service) Delete

func (s *Service) Delete()

func (*Service) Get

func (s *Service) Get(ctx context.Context) (*Address, error)

func (*Service) List

func (s *Service) List()

Jump to

Keyboard shortcuts

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