auth

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resp

type Resp struct {
	Name       string
	ID         uuid.UUID
	Properties [1]struct {
		Name, Value, Signature string
	}
}

Resp is the response of authentication

func Encrypt

func Encrypt(conn *net.Conn, name string) (*Resp, error)

Encrypt a connection, with authentication

func (*Resp) Texture

func (r *Resp) Texture() (t Texture, err error)

Texture unmarshal the base64 encoded texture of Resp

type Texture

type Texture struct {
	TimeStamp int64     `json:"timestamp"`
	ID        uuid.UUID `json:"profileId"`
	Name      string    `json:"profileName"`
	Textures  struct {
		SKIN, CAPE struct {
			URL string `json:"url"`
		}
	} `json:"textures"`
}

Texture includes player's skin and cape

Jump to

Keyboard shortcuts

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