biz

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CDNCoverImageURL  = "https://steamcdn-a.akamaihd.net/steam/apps/%d/library_600x900_2x.jpg"
	CDNLogoImageURL   = "https://steamcdn-a.akamaihd.net/steam/apps/%d/logo.png"
	CDNHeaderImageURL = "https://steamcdn-a.akamaihd.net/steam/apps/%d/library_hero.jpg"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	AppID              uint
	StoreURL           string
	Name               string
	Type               AppType
	ShortDescription   string
	BackgroundImageURL string
	CoverImageURL      string
	LogoImageURL       string
	IconImageURL       string
	Description        string
	ReleaseDate        string
	Developer          string
	Publisher          string
}

type AppType

type AppType string
const (
	AppTypeGame        AppType = "game"
	AppTypeApplication AppType = "application"
	AppTypeTool        AppType = "tool"
	AppTypeDemo        AppType = "demo"
	AppTypeDeprected   AppType = "deprected"
	AppTypeDLC         AppType = "dlc"
	AppTypeGuide       AppType = "guide"
	AppTypeDriver      AppType = "driver"
	AppTypeConfig      AppType = "config"
	AppTypeHardware    AppType = "hardware"
	AppTypeFranchise   AppType = "franchise"
	AppTypeVideo       AppType = "video"
	AppTypePlugin      AppType = "plugin"
	AppTypeMusic       AppType = "music"
	AppTypeSeries      AppType = "series"
	AppTypeComic       AppType = "comic"
	AppTypeBeta        AppType = "beta"
)

type Locale

type Locale int
const (
	LocaleEn Locale = iota
	LocaleChs
	LocaleCht
)

func GetLocale

func GetLocale() Locale

type SteamUseCase

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

func NewSteamUseCase

func NewSteamUseCase(apiKey string) *SteamUseCase

func (*SteamUseCase) GetAppDetails

func (s *SteamUseCase) GetAppDetails(ctx context.Context, appID int) (*App, error)

func (*SteamUseCase) GetOwnedGames

func (s *SteamUseCase) GetOwnedGames(ctx context.Context, steamID string) ([]*App, error)

func (*SteamUseCase) GetUser

func (s *SteamUseCase) GetUser(ctx context.Context, steamID string) (*User, error)

func (*SteamUseCase) SearchAppByName added in v0.0.3

func (s *SteamUseCase) SearchAppByName(ctx context.Context, name string) ([]*App, error)

type User

type User struct {
	SteamID    string
	Name       string
	ProfileURL string
	AvatarURL  string
}

Jump to

Keyboard shortcuts

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