Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationType ¶
type ApplicationType string
const (
ApplicationTypeMinecraftPE ApplicationType = "MinecraftPE"
)
type Configuration ¶
type DeviceConfig ¶
type DeviceConfig struct { ApplicationType ApplicationType `json:"applicationType,omitempty"` Capabilities []Capability `json:"capabilities,omitempty"` GameVersion string `json:"gameVersion,omitempty"` ID uuid.UUID `json:"id,omitempty"` Memory string `json:"memory,omitempty"` Platform Platform `json:"platform,omitempty"` PlayFabTitleID string `json:"playFabTitleId,omitempty"` StorePlatform StorePlatform `json:"storePlatform,omitempty"` TreatmentOverrides []string `json:"treatmentOverrides,omitempty"` Type DeviceType `json:"type,omitempty"` }
type Discovery ¶
type Discovery struct { ServiceEnvironments map[string]map[EnvironmentType]json.RawMessage `json:"serviceEnvironments,omitempty"` SupportedEnvironments map[string][]EnvironmentType `json:"supportedEnvironments,omitempty"` }
func (*Discovery) Environment ¶
func (d *Discovery) Environment(name string, typ EnvironmentType) (json.RawMessage, bool)
type EnvironmentType ¶
type EnvironmentType string
const ( EnvironmentTypeProduction EnvironmentType = "prod" EnvironmentTypeDevelopment EnvironmentType = "dev" EnvironmentTypeStage EnvironmentType = "stage" )
type StorePlatform ¶
type StorePlatform string
const (
StorePlatformUWPStore StorePlatform = "uwp.store"
)
type Token ¶
type Token struct { AuthorizationHeader string `json:"authorizationHeader,omitempty"` ValidUntil time.Time `json:"validUntil,omitempty"` Treatments []string `json:"treatments,omitempty"` Configurations map[string]Configuration `json:"configurations,omitempty"` TreatmentContext string `json:"treatmentContext,omitempty"` }
func (*Token) SetAuthHeader ¶
type TokenConfig ¶
type TokenConfig struct { Device *DeviceConfig `json:"device,omitempty"` User *UserConfig `json:"user,omitempty"` Environment AuthorizationEnvironment `json:"-"` }
func (*TokenConfig) Token ¶
func (c *TokenConfig) Token() (*Token, error)
type TokenConfigSource ¶
type TokenConfigSource interface {
TokenConfig() (*TokenConfig, error)
}
Click to show internal directories.
Click to hide internal directories.