minecraft

package
v3.0.0-...-a5301c5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadPacket = errors.New("bad Minecraft handshake packet")

Functions

func SniffClientHandshake

func SniffClientHandshake(conn bufio.PeekConn, metadata *adapter.Metadata) error

Types

type Outbound

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

func NewOutbound

func NewOutbound(logger *log.Logger, newConfig *config.Outbound) (*Outbound, error)

func (*Outbound) DialContext

func (o *Outbound) DialContext(context.Context, string, string) (net.Conn, error)

func (*Outbound) InjectConnection

func (o *Outbound) InjectConnection(ctx context.Context, conn *bufio.CachedConn, metadata *adapter.Metadata) error

func (*Outbound) Name

func (o *Outbound) Name() (name string)

func (*Outbound) PostInitialize

func (o *Outbound) PostInitialize(router adapter.Router, provider adapter.RouteResourceProvider) error

func (*Outbound) Reload

func (o *Outbound) Reload(options adapter.OutboundReloadOptions) error

Jump to

Keyboard shortcuts

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