client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewColly

func NewColly() *colly.Collector

Types

type Steam

type Steam struct {
	*StoreAPI
	*WebAPI
}

func NewSteam

func NewSteam(apiKey string) (*Steam, error)

type StoreAPI

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

func NewStoreAPI

func NewStoreAPI(c *colly.Collector) (*StoreAPI, error)

func (*StoreAPI) Get

func (s *StoreAPI) Get(ctx context.Context, path string, query url.Values, data interface{}) error

func (*StoreAPI) GetAppDetails

func (s *StoreAPI) GetAppDetails(
	ctx context.Context,
	req model.GetAppDetailsRequest,
) (map[string]model.AppDetailsBasic, error)

type WebAPI

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

func NewWebAPI

func NewWebAPI(c *colly.Collector, apiKey string) (*WebAPI, error)

func (*WebAPI) Get

func (s *WebAPI) Get(ctx context.Context, path string, query url.Values, data interface{}) error

func (*WebAPI) GetAppList added in v0.0.3

func (s *WebAPI) GetAppList(ctx context.Context, req model.GetAppListRequest) (*model.AppList, error)

func (*WebAPI) GetOwnedGames

func (s *WebAPI) GetOwnedGames(ctx context.Context, req model.GetOwnedGamesRequest) (*model.OwnedGames, error)

func (*WebAPI) GetPlayerSummary

func (s *WebAPI) GetPlayerSummary(
	ctx context.Context,
	req model.GetPlayerSummariesRequest,
) (*model.PlayerSummary, error)

Jump to

Keyboard shortcuts

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