auth

package
v0.0.0-...-fdeead0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Property deprecated

type Property = user.Property

Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them

type PublicKey deprecated

type PublicKey = user.PublicKey

Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them

type Resp

type Resp struct {
	Name       string
	ID         uuid.UUID
	Properties []user.Property
}

Resp is the response of authentication

func Encrypt

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

Encrypt a connection, with authentication

func (*Resp) Texture

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

Texture unmarshal the base64 encoded texture of Resp

type Texture deprecated

type Texture = user.Texture

Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them

Jump to

Keyboard shortcuts

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