books

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: 13 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(jobRepository jobs.Repository, cityRepository cities.Repository,
	orderRepository orders.Repository) (*Impl, error)

func (*Impl) FindCities

func (service *Impl) FindCities(name string, locale discordgo.Locale) []entities.City

func (*Impl) FindJobs

func (service *Impl) FindJobs(name string, locale discordgo.Locale) []entities.Job

func (*Impl) FindOrders

func (service *Impl) FindOrders(name string, locale discordgo.Locale) []entities.Order

func (*Impl) GetCities

func (service *Impl) GetCities() []entities.City

func (*Impl) GetCity

func (service *Impl) GetCity(id string) (entities.City, bool)

func (*Impl) GetJob

func (service *Impl) GetJob(id string) (entities.Job, bool)

func (*Impl) GetJobs

func (service *Impl) GetJobs() []entities.Job

func (*Impl) GetOrder

func (service *Impl) GetOrder(id string) (entities.Order, bool)

func (*Impl) GetOrders

func (service *Impl) GetOrders() []entities.Order

type Service

type Service interface {
	GetJob(id string) (entities.Job, bool)
	GetJobs() []entities.Job
	FindJobs(name string, locale discordgo.Locale) []entities.Job
	GetCity(id string) (entities.City, bool)
	GetCities() []entities.City
	FindCities(name string, locale discordgo.Locale) []entities.City
	GetOrder(id string) (entities.Order, bool)
	GetOrders() []entities.Order
	FindOrders(name string, locale discordgo.Locale) []entities.Order
}

Jump to

Keyboard shortcuts

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