Documentation ¶
Index ¶
- type ChecksumRepository
- type Connector
- type PrefectureRepository
- type WageRepository
- func (w *WageRepository) Checksum() repository.Checksum
- func (w *WageRepository) Find(name string, prefectureID int) (result *domain.Wage, err error)
- func (w *WageRepository) FindByID(id int) (result *domain.Wage, err error)
- func (w *WageRepository) FindByPrefectureID(id int) (result []domain.Wage, err error)
- func (w *WageRepository) Prefecture() repository.Prefecture
- func (w *WageRepository) Set(req domain.Wage) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChecksumRepository ¶
type Connector ¶
type Connector struct { SCHEME string `envconfig:"scheme" default:"mysql"` User string `envconfig:"user" required:"true"` Password string `envconfig:"password" required:"true"` IP string `envconfig:"ip" required:"true"` Port string `envconfig:"port" default:"3306"` DATABASE string `envconfig:"database" required:"true"` }
type PrefectureRepository ¶
func (*PrefectureRepository) FindAll ¶
func (p *PrefectureRepository) FindAll() (result []domain.Prefecture, err error)
FindAll gets all of prefectures on database
type WageRepository ¶
func (*WageRepository) Checksum ¶
func (w *WageRepository) Checksum() repository.Checksum
func (*WageRepository) FindByID ¶
func (w *WageRepository) FindByID(id int) (result *domain.Wage, err error)
func (*WageRepository) FindByPrefectureID ¶
func (w *WageRepository) FindByPrefectureID(id int) (result []domain.Wage, err error)
func (*WageRepository) Prefecture ¶
func (w *WageRepository) Prefecture() repository.Prefecture
Click to show internal directories.
Click to hide internal directories.