games

package
v0.0.0-...-dd46240 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package games provides a service to consume API resource games.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Games

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

func NewGames

func NewGames(service Service) *Games

func (*Games) GetStatistics

func (g *Games) GetStatistics(ctx context.Context) (*types.GameStatistics, error)

type HTTPService

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

HTTPService implements the Service interface using HTTP requests.

func NewHTTPService

func NewHTTPService(c *baseclient.BaseClient, gameID internaltypes.Game) *HTTPService

NewHTTPService creates a new instance of HTTPService.

func (*HTTPService) GetStatistics

func (s *HTTPService) GetStatistics(ctx context.Context) (*types.GameStatistics, error)

GetStatistics for a game.

type Service

type Service interface {
	GetStatistics(ctx context.Context) (*types.GameStatistics, error)
}

Service describes the Games operations V1.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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