modelgebura

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 2 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 {
	ID                 model.InternalID
	Internal           bool
	Source             string
	SourceAppID        string
	SourceURL          string
	Name               string
	Type               AppType
	ShortDescription   string
	IconImageURL       string
	BackgroundImageURL string
	CoverImageURL      string
	Tags               []string
	Details            *AppDetails
	// the bound Internal app id if self is external
	BoundInternal    model.InternalID
	LatestUpdateTime time.Time
}

type AppDetails

type AppDetails struct {
	Description string
	ReleaseDate string
	Developer   string
	Publisher   string
	Version     string
}

type AppID added in v0.2.1

type AppID struct {
	Internal    bool
	Source      string
	SourceAppID string
}

type AppMixed added in v0.2.0

type AppMixed struct {
	ID                 model.InternalID
	Name               string
	Type               AppType
	ShortDescription   string
	IconImageURL       string
	BackgroundImageURL string
	CoverImageURL      string
	Tags               []string
	Details            *AppDetails
}

type AppPackage

type AppPackage struct {
	ID            model.InternalID
	Source        AppPackageSource
	SourceID      model.InternalID
	Name          string
	Description   string
	Binary        *AppPackageBinary
	Public        bool
	AssignedAppID model.InternalID
}

type AppPackageBinary

type AppPackageBinary struct {
	Name      string
	SizeBytes int64
	PublicURL string
	Sha256    []byte
}

type AppPackageSource

type AppPackageSource int
const (
	AppPackageSourceUnspecified AppPackageSource = iota
	AppPackageSourceManual
	AppPackageSourceSentinel
)

type AppSource

type AppSource int
const (
	AppSourceUnspecified AppSource = iota
	AppSourceInternal
	AppSourceSteam
)

type AppType

type AppType int
const (
	AppTypeUnspecified AppType = iota
	AppTypeGame
)

type BoundApps added in v0.1.7

type BoundApps struct {
	Internal *App
	Others   []*App
}

func (*BoundApps) Flatten added in v0.1.7

func (b *BoundApps) Flatten() *AppMixed

Jump to

Keyboard shortcuts

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