Documentation
¶
Index ¶
- func NameAvailability(username string) (string, error)
- func SameErrorMessage(err, target error) bool
- type AccType
- type Droptime
- type MCaccount
- func (account *MCaccount) AuthenticatedReq(method string, url string, body io.Reader) (*http.Request, error)
- func (account *MCaccount) ChangeName(username string, changeTime time.Time, createProfile bool) (NameChangeReturn, error)
- func (account *MCaccount) ChangeSkinFromUrl(url, variant string) error
- func (account *MCaccount) HasGcApplied() (bool, error)
- func (account *MCaccount) InitAuthFlow() error
- func (account *MCaccount) LoadAccountInfo() error
- func (account *MCaccount) MicrosoftAuthenticate() error
- func (account *MCaccount) MojangAuthenticate() error
- func (account *MCaccount) NameChangeInfo() (nameChangeInfoResponse, error)
- type NameChangeReturn
- type RequestError
- type SqAnswer
- type XBLSignInResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NameAvailability ¶ added in v0.2.3
func SameErrorMessage ¶
Types ¶
type MCaccount ¶
type MCaccount struct { Email string Password string SecurityQuestions []SqAnswer SecurityAnswers []string Bearer string UUID string Username string Type AccType Authenticated bool }
represents a minecraft account
func (*MCaccount) AuthenticatedReq ¶
func (*MCaccount) ChangeName ¶
func (*MCaccount) ChangeSkinFromUrl ¶ added in v0.2.93
func (*MCaccount) HasGcApplied ¶ added in v0.1.91
func (*MCaccount) InitAuthFlow ¶ added in v0.2.92
func (*MCaccount) LoadAccountInfo ¶
load account information (username, uuid) into accounts attributes, if not already there. When using Mojang authentication it is not necessary to load this info, as it will be automatically loaded.
func (*MCaccount) MicrosoftAuthenticate ¶
func (*MCaccount) MojangAuthenticate ¶
Runs all steps necessary to have a fully authenticated mojang account. It will submit email & pass and securitty questions (if necessary).
func (*MCaccount) NameChangeInfo ¶
grab information on the availability of name change for this account
type NameChangeReturn ¶ added in v0.1.8
type RequestError ¶ added in v0.1.5
TODO: Use RequestError for status-code-related errors
func (*RequestError) Error ¶ added in v0.1.5
func (r *RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.