portals

package
v0.0.0-...-7034edb Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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 (service *Impl) FindDimensions(name string, locale discordgo.Locale) []entities.Dimension

func (*Impl) GetArea

func (service *Impl) GetArea(id string) (entities.Area, bool)

func (*Impl) GetDimension

func (service *Impl) GetDimension(id string) (entities.Dimension, bool)

func (*Impl) GetSubArea

func (service *Impl) GetSubArea(id string) (entities.SubArea, bool)

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) []entities.Dimension
}

Jump to

Keyboard shortcuts

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