Documentation
¶
Index ¶
- type Impl
- func (service *Impl) FindDimensions(name string, locale discordgo.Locale, limit int) []entities.Dimension
- func (service *Impl) GetArea(id string) (entities.Area, bool)
- func (service *Impl) GetDimension(id string) (entities.Dimension, bool)
- func (service *Impl) GetSubArea(id string) (entities.SubArea, bool)
- func (service *Impl) GetTransportType(id string) (entities.TransportType, bool)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func New ¶
func New(dimensionRepo dimensions.Repository, areaRepo areas.Repository, subAreaRepo subareas.Repository, transportTypeRepo transports.Repository) (*Impl, error)
func (*Impl) FindDimensions ¶
func (*Impl) GetTransportType ¶
func (service *Impl) GetTransportType(id string) (entities.TransportType, bool)
type Service ¶
type Service interface { GetDimension(id string) (entities.Dimension, bool) GetArea(id string) (entities.Area, bool) GetSubArea(id string) (entities.SubArea, bool) GetTransportType(id string) (entities.TransportType, bool) FindDimensions(name string, locale discordgo.Locale, limit int) []entities.Dimension }
Click to show internal directories.
Click to hide internal directories.