api

package
v0.0.0-...-e18b250 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL *url.URL

	Game *GameService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL *url.URL, apiKey, apiSecret string, timeout time.Duration) (*Client, error)

type GameService

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

func (*GameService) GetFile

func (service *GameService) GetFile(game game.Game, directory string) (*download.Download, error)

func (*GameService) GetIcon

func (service *GameService) GetIcon(game game.Game) (image.Image, error)

func (*GameService) GetList

func (service *GameService) GetList() (game.Games, error)

type UserService

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

func (*UserService) CreateNewUser

func (service *UserService) CreateNewUser(u user.User) (user.User, error)

func (*UserService) GetList

func (service *UserService) GetList() (user.Users, error)

Jump to

Keyboard shortcuts

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