locationRepository

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocationRepository

func NewLocationRepository(db *sql.DB) location.Repository

Types

type LocationRepository

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

func (*LocationRepository) CityListByCountry

func (r *LocationRepository) CityListByCountry(id int64) ([]*model.City, error)

func (*LocationRepository) CountryList

func (r *LocationRepository) CountryList() ([]*model.Country, error)

func (*LocationRepository) FindCity

func (r *LocationRepository) FindCity(id int64) (*model.City, error)

func (*LocationRepository) FindCountry

func (r *LocationRepository) FindCountry(id int64) (*model.Country, error)

Jump to

Keyboard shortcuts

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