proxy

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Config requires a valid configuration.
	Config *config.Config
	// The event manager to use.
	// If none is set, no events are sent.
	EventMgr event.Manager
	// Logger is the logger to be used by the Proxy.
	// If none is set, does no logging at all.
	Logger logr.Logger
}

Options are the options for a new Bedrock edition Proxy.

type Player

type Player struct {
}

type Proxy

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

Proxy is Gate's Bedrock edition Minecraft proxy.

func New

func New(options Options) (p *Proxy, err error)

New takes a config that should have been validated by config.Validate and returns a new initialized Proxy ready to start.

func (*Proxy) Start

func (p *Proxy) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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