controller

package
v0.0.0-...-65b1bfe Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameController

type GameController interface {
	GetGameDetailsByID(ctx *gin.Context)
	GetGames(c *gin.Context)
}

func NewGameController

func NewGameController(steamService service.SteamClient, redisClient cache.RedisClient, db persistence.StorageDB, gameProcessor service.GameProcessor) GameController

type GameControllers

type GameControllers struct {
	// contains filtered or unexported fields
}

func (*GameControllers) GetCachedGameDetails

func (gc *GameControllers) GetCachedGameDetails(gameID int) (*entity.GameDetails, error)

func (*GameControllers) GetGameDetailsByID

func (gc *GameControllers) GetGameDetailsByID(ctx *gin.Context)

func (*GameControllers) GetGames

func (gc *GameControllers) GetGames(c *gin.Context)

func (*GameControllers) SaveToCache

func (gc *GameControllers) SaveToCache(gameID string, data interface{}) error

type ProcessController

type ProcessController interface {
	Process(ctx *gin.Context)
}

func NewProcessController

func NewProcessController(sv *service.GameProcessor) ProcessController

type ReviewController

type ReviewController interface {
	ProcessReviews(ctx *gin.Context)
	GetReviews(ctx *gin.Context)
}

func NewReviewController

func NewReviewController(api service.ReviewsClient, storage persistence.StorageDB, redisClient cache.RedisClient) ReviewController

Jump to

Keyboard shortcuts

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