Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Writer }
type Service ¶
type Service interface { Writer }
func NewService ¶
func NewService(repository Repository, locationService location.Service) Service
type Start ¶
type Start struct { common.Timestamp ID uint `gorm:"primaryKey"` OptimalDirections int `gorm:"column:optimaldirection"` SuboptimalDirections int `gorm:"column:suboptimaldirection;size:64"` StartLocationID uint `gorm:"column:startlocationid"` StartLocation location.Location `gorm:"foreignkey:StartLocationID;references:id"` Landings []location.Location `gorm:"many2many:start_landing_locations"` }
type StartRepository ¶
type StartRepository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(context *gorm.DB) (*StartRepository, error)
func (*StartRepository) Delete ¶
func (s *StartRepository) Delete(id uint) error
func (*StartRepository) Update ¶
func (s *StartRepository) Update(start *Start) error
type StartService ¶
type StartService struct {
// contains filtered or unexported fields
}
func (*StartService) Delete ¶
func (s *StartService) Delete(id uint) error
func (*StartService) Update ¶
func (s *StartService) Update(start *Start) error
Click to show internal directories.
Click to hide internal directories.