Documentation ¶
Overview ¶
Package provider implements the endpoints required game provider integrations.
Index ¶
- func OperatorAuthorization(apiKey string) fiber.Handler
- func OperatorFactory() *operatorFactory
- func ProviderFactory() *providerFactory
- type GameLaunchController
- type GameLaunchHeaders
- type GameLaunchRequest
- type GameLaunchResponse
- type GameRoundController
- type GameRoundRenderRequest
- type OperatorArgs
- type ProviderArgs
- type ProviderService
- type Registry
- type Route
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperatorAuthorization ¶ added in v0.6.0
func OperatorAuthorization(apiKey string) fiber.Handler
OperatorAuthorization is used as a fiber middleware to validate a configured api key.
func OperatorFactory ¶
func OperatorFactory() *operatorFactory
OperatorFactory returns a single instance to the operator router factory
func ProviderFactory ¶
func ProviderFactory() *providerFactory
ProviderFactory returns a single instance to the provider router factory
Types ¶
type GameLaunchController ¶
type GameLaunchController struct {
// contains filtered or unexported fields
}
func NewGameLaunchController ¶
func NewGameLaunchController(s ProviderService) *GameLaunchController
func (GameLaunchController) GameLaunchEndpoint ¶
func (ctrl GameLaunchController) GameLaunchEndpoint(ctx *fiber.Ctx) error
GameLaunchEndpoint Execute provider gamelaunch request
type GameLaunchHeaders ¶
type GameLaunchHeaders struct {
SessionKey string `reqHeader:"X-Player-Token" validate:"required"`
}
type GameLaunchRequest ¶
type GameLaunchRequest struct { LaunchConfig map[string]interface{} `json:"launchConfig,omitempty"` Currency string `json:"currency" validate:"required"` ProviderGameID string `json:"providerGameId" validate:"required"` PlayerID string `json:"playerId" validate:"required"` Casino string `json:"casino,omitempty"` Country string `json:"country,omitempty"` Language string `json:"language,omitempty"` SessionIP string `json:"sessionIp,omitempty"` }
type GameLaunchResponse ¶
type GameLaunchResponse struct {
GameURL string `json:"gameUrl"`
}
type GameRoundController ¶ added in v0.6.0
type GameRoundController struct {
// contains filtered or unexported fields
}
func NewGameRoundController ¶ added in v0.6.0
func NewGameRoundController(s ProviderService) *GameRoundController
func (*GameRoundController) GetGameRoundEndpoint ¶ added in v0.6.0
func (ctrl *GameRoundController) GetGameRoundEndpoint(c *fiber.Ctx) error
GetGameRoundEndpoint Returns redirect status with provider url for game round rendering
type GameRoundRenderRequest ¶ added in v0.7.0
type OperatorArgs ¶
type OperatorArgs struct { HTTPClient rest.HTTPClientJSONInterface Config configs.ProviderConf }
type ProviderArgs ¶
type ProviderArgs struct { PamClient pam.PamClient HTTPClient rest.HTTPClientJSONInterface Config configs.ProviderConf }
ProviderArgs composes all arguments required to build a provider router
type ProviderService ¶ added in v0.6.0
type ProviderService interface { // GameLaunch returns url to game session GameLaunch(*fiber.Ctx, *GameLaunchRequest, *GameLaunchHeaders) (string, error) // GetGameRoundRender Returns url where a specific game round result is rendered to be viewed GetGameRoundRender(*fiber.Ctx, GameRoundRenderRequest) (string, error) }
ProviderService Contains Provider exposed features
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package caleta module for provider Caleta
|
Package caleta module for provider Caleta |
auth
Package auth defines auth helpers
|
Package auth defines auth helpers |
Package docs provides provider documentation, such as openapi specs.
|
Package docs provides provider documentation, such as openapi specs. |
generated
Code generated by swaggo/swag.
|
Code generated by swaggo/swag. |
Package evolution contains the provider implementation for Evolution games with wallet api and user authentication.
|
Package evolution contains the provider implementation for Evolution games with wallet api and user authentication. |
internal
|
|
test
Package test contains shared test code for providers
|
Package test contains shared test code for providers |
Package redtiger contains the provider implementation for Red Tiger games with wallet api and user authentication.
|
Package redtiger contains the provider implementation for Red Tiger games with wallet api and user authentication. |
Click to show internal directories.
Click to hide internal directories.