aumgr

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EpicOAuthHost        = "account-public-service-prod03.ol.epicgames.com"
	LauncherClientId     = "34a02cf8f4414e29b15921876da36f9a"
	LauncherClientSecret = "daafbccc737745039dffe53d94fc76cf"
	EpicUserAgent        = "UELauncher/11.0.1-14469634+++Portal+Release-Live Windows/10.0.19041.1.256.64bit"
)
View Source
const (
	EpicCatalogId  = "729a86a5146640a2ace9e8c595414c56"
	EpicNamespace  = "33956bcb55d4452d8c47e16b94e294bd"
	EpicArtifactId = "963137e4c29d4c79a81323b8fab03a40"
)

Variables

This section is empty.

Functions

func GetAmongUsDir

func GetAmongUsDir() (string, error)

func GetVersion added in v1.1.0

func GetVersion(gamePath string) (string, error)

func IsAmongUsRunning

func IsAmongUsRunning() (pid int, err error)

func IsProcessRunning added in v1.5.3

func IsProcessRunning(pid int) (bool, error)

func LaunchAmongUs

func LaunchAmongUs(launcherType LauncherType, amongUsDir string, dllDir string, exchangeCode string, directJoinInfo DirectJoinInfo, onStarted func(pid int) error) error

Types

type BinaryType

type BinaryType string
const (
	BinaryTypeUnknown BinaryType = "unknown"
	BinaryType32Bit   BinaryType = "x86"
	BinaryType64Bit   BinaryType = "x64"
)

func GetBinaryType added in v1.1.0

func GetBinaryType(amongUsDir string) (BinaryType, error)

func (BinaryType) IsCompatibleWith added in v1.2.0

func (bt BinaryType) IsCompatibleWith(target model.TargetPlatform) bool

type DirectJoinInfo added in v1.6.11

type DirectJoinInfo struct {
	LobbyCode      string
	ServerIP       string
	ServerPort     uint16
	MatchMakerIp   string
	MatchMakerPort uint16
}

type EpicApi added in v1.1.0

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

func NewEpicApi added in v1.1.0

func NewEpicApi() *EpicApi

func (*EpicApi) GetAuthUrl added in v1.1.0

func (a *EpicApi) GetAuthUrl() string

func (*EpicApi) GetExchangeCode added in v1.1.0

func (a *EpicApi) GetExchangeCode(accessToken string) (string, error)

func (*EpicApi) LoginWithAuthCode added in v1.1.0

func (a *EpicApi) LoginWithAuthCode(code string) (*EpicSession, error)

func (*EpicApi) LoginWithCode added in v1.3.0

func (a *EpicApi) LoginWithCode(code string) (*EpicSession, error)

func (*EpicApi) LoginWithExchangeCode added in v1.3.0

func (a *EpicApi) LoginWithExchangeCode(exchangeCode string) (*EpicSession, error)

func (*EpicApi) RefreshSession added in v1.1.0

func (a *EpicApi) RefreshSession(refreshToken string) (*EpicSession, error)

type EpicSession added in v1.1.0

type EpicSession struct {
	AccessToken  string    `json:"access_token"`
	ExpiresAt    time.Time `json:"expires_at"`
	RefreshToken string    `json:"refresh_token"`
	RefreshAt    time.Time `json:"refresh_at"`
	AccountId    string    `json:"account_id"`
	DisplayName  string    `json:"display_name"`
}

type EpicSessionManager added in v1.1.0

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

func NewEpicSessionManager added in v1.1.0

func NewEpicSessionManager(storagePath string) (*EpicSessionManager, error)

func (*EpicSessionManager) Clear added in v1.1.0

func (m *EpicSessionManager) Clear() error

func (*EpicSessionManager) GetSession added in v1.1.0

func (m *EpicSessionManager) GetSession() *EpicSession

func (*EpicSessionManager) GetValidSession added in v1.1.0

func (m *EpicSessionManager) GetValidSession(api *EpicApi) (*EpicSession, error)

func (*EpicSessionManager) Load added in v1.1.0

func (m *EpicSessionManager) Load() error

func (*EpicSessionManager) Save added in v1.1.0

func (m *EpicSessionManager) Save(session *EpicSession) error

type LauncherType

type LauncherType string
const (
	LauncherUnknown   LauncherType = ""
	LauncherSteam     LauncherType = "steam"
	LauncherEpicGames LauncherType = "epic"
	LauncherMicrosoft LauncherType = "microsoft"
)

func DetectLauncherType

func DetectLauncherType(amongUsDir string) LauncherType

func LauncherFromString

func LauncherFromString(s string) LauncherType

func (LauncherType) String

func (lt LauncherType) String() string

Jump to

Keyboard shortcuts

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