Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func NewManagerImpl ¶
func NewManagerImpl(repository Repository) Manager
type ManagerImpl ¶
type ManagerImpl struct {
// contains filtered or unexported fields
}
func (*ManagerImpl) ImportZCTAs ¶
func (m *ManagerImpl) ImportZCTAs(r io.Reader) error
type Repository ¶
type Repository interface { Store(zipCode, point string) error FindZipCode(zipCode string) (ZipCode, error) FindAdjacent(longitude, latitude, meters float64) ([]ZipCode, error) }
func NewRepositoryImpl ¶
func NewRepositoryImpl(conn *pgxpool.Pool) (Repository, error)
type RepositoryImpl ¶
type RepositoryImpl struct {
// contains filtered or unexported fields
}
func (*RepositoryImpl) FindAdjacent ¶
func (r *RepositoryImpl) FindAdjacent(longitude, latitude, meters float64) ([]ZipCode, error)
func (*RepositoryImpl) FindZipCode ¶
func (r *RepositoryImpl) FindZipCode(zipCode string) (ZipCode, error)
func (*RepositoryImpl) Store ¶
func (r *RepositoryImpl) Store(zipCode, point string) error
Click to show internal directories.
Click to hide internal directories.