domain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAddressRepositoryNotFound   = errors.New("Address is not found")
	ErrAddressRepositoryUnexpected = errors.New("Unexpected error")
)

Functions

This section is empty.

Types

type Address

type Address struct {
	PostalCode string `json:"postalCode"`
	Prefecture string `json:"prefecture"`
	Locality   string `json:"locality"`
}

type AddressRepository

type AddressRepository interface {
	FindByPostalCode(ctx context.Context, postalCode string) (*Address, error)
}

Jump to

Keyboard shortcuts

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