packages

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(client *cliHttp.SimpleClient, packageID int, options *GetOptions) (*models.GamePackage, error)

Get sends a new /packages/:packageId request

Types

type GetOptions

type GetOptions struct {
	GameID int
}

GetOptions are additional optional parameters for the `/packages/:id` endpoint`

type GetResult

type GetResult struct {
	Package *models.GamePackage `json:"package"`
	Error   *models.Error       `json:"error,omitempty"`
}

GetResult is the payload from the `/packages/:id` endpoint

Jump to

Keyboard shortcuts

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