api

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Game *GameService
	User *UserService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL *url.URL, timeout time.Duration) (client *Client)

func (*Client) BuildURL

func (c *Client) BuildURL(url url.URL) url.URL

type GameService

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

func (*GameService) Download

func (service *GameService) Download(ctx context.Context, game game.Game, directory string) (download *network.Download, err error)

func (*GameService) GetGame

func (service *GameService) GetGame(slug string) (game game.Game, err error)

func (*GameService) GetGames

func (service *GameService) GetGames() (games []string, err error)

func (*GameService) GetIcon

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

type UserService

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

func (*UserService) CreateNewUser

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

func (*UserService) GetUser

func (service *UserService) GetUser(ip string) (user user.User, err error)

func (*UserService) GetUsers

func (service *UserService) GetUsers() (users []string, err error)

func (*UserService) UpdateUser

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

Jump to

Keyboard shortcuts

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