bizsteam

package
v0.0.6-1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

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
	ImageURL         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 SteamUseCase

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

func NewSteamUseCase

func NewSteamUseCase(client *steam.Steam, _ *data.Data) *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)

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