proxy

package
v0.0.0-...-8203687 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunProxy

func RunProxy(ctx context.Context, cfg *lac.ConfSubtree, dump chan *ProxiedChunk)

Types

type MessageFeedback

type MessageFeedback struct {
	To   string
	Type string // "chat", "system" or "info"
	Msg  chat.Message
}

type ProxiedChunk

type ProxiedChunk struct {
	Username            string
	Server              string
	Dimension           string
	DimensionLowestY    int32
	DimensionBuildLimit int
	Pos                 level.ChunkPos
	Data                level.Chunk
}

type ProxiedPacket

type ProxiedPacket struct {
	Username string
	Server   string
	Packet   pk.Packet
}

type ProxyRoute

type ProxyRoute struct {
	Address   string `json:"address"`
	World     string `json:"world"`
	Dimension string `json:"dimension"`
	Storage   string `json:"storage"`
}

type SnifferProxy

type SnifferProxy struct {
	Routing     func(name string) string
	CredManager *credentials.MicrosoftCredentialsManager
	SaveChannel chan *ProxiedChunk
	Conf        *lac.ConfSubtree
	Ctx         context.Context
}

func (SnifferProxy) AcceptPlayer

func (p SnifferProxy) AcceptPlayer(name string, id uuid.UUID, profilePubKey *auth.PublicKey, properties []auth.Property, proto int32, conn *net.Conn)

Jump to

Keyboard shortcuts

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