game

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 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 Handler

type Handler struct {
	GameService           service.GameService
	FeatureService        service.FeatureService
	GenreService          service.GenreService
	RegionCurrencyService service.RegionCurrencyService
	LocalizationService   service.LocalizationService
	LanguageService       service.LanguageService
	MediaService          service.MediaService
	URLBuilder            url_builder.Helper
}

func New

func New(params Params) *Handler

func (*Handler) GetByFilter

func (h *Handler) GetByFilter(ctx context.Context, request *proto.GetByFilterRequest) (*proto.GamesResponse, error)

func (*Handler) GetByID

func (h *Handler) GetByID(ctx context.Context, request *proto.GetByIDRequest) (*proto.GameResponse, error)

func (*Handler) GetBySlug

func (h *Handler) GetBySlug(ctx context.Context, request *proto.GetBySlugRequest) (*proto.GameResponse, error)

func (*Handler) GetFeatures

func (h *Handler) GetFeatures(ctx context.Context, request *proto.GetFeaturesRequest) (*proto.FeaturesResponse, error)

func (*Handler) GetGenres

func (h *Handler) GetGenres(ctx context.Context, request *proto.GetGenresRequest) (*proto.GenresResponse, error)

func (*Handler) GetShortByFilter

func (*Handler) RequestIDsToIDs

func (h *Handler) RequestIDsToIDs(ids []uint64) []uint

type Params

type Params struct {
	fx.In

	GameService           service.GameService
	GenreService          service.GenreService
	FeatureService        service.FeatureService
	RegionCurrencyService service.RegionCurrencyService
	LocalizationService   service.LocalizationService
	LanguageService       service.LanguageService
	MediaService          service.MediaService
	URLBuilder            url_builder.Helper
}

Jump to

Keyboard shortcuts

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