manager

package
v0.0.0-...-c047542 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandleAddPlayer func(player interfaces.Player)

HandleAddPlayer is called when a player enters the proxy.

View Source
var HandleRemovePlayer func(xuid string)

HandleRemovePlayer is called when a player leaves the proxy.

View Source
var Indexes map[string]int
View Source
var Mutex sync.Mutex
View Source
var Plugins []*Plugin
View Source
var Ready = make(chan struct{})

Functions

func Init

func Init(v interfaces.VastleX)

Init initializes the plugin system as the proxy and loads all the plugins.

func WriteAll

func WriteAll(action actions.Action)

Types

type LoggingReadCloser

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

func (*LoggingReadCloser) Close

func (l *LoggingReadCloser) Close() error

func (*LoggingReadCloser) Read

func (l *LoggingReadCloser) Read(b []byte) (i int, err error)

type Plugin

type Plugin struct {
	Name    string
	Version int32
	// contains filtered or unexported fields
}

func New

func New(name string, cmd *exec.Cmd) (*Plugin, error)

func (*Plugin) Close

func (plugin *Plugin) Close()

func (*Plugin) WriteAction

func (plugin *Plugin) WriteAction(action actions.Action) error

Jump to

Keyboard shortcuts

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