spectrum

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 19 Imported by: 0

README

SpectrumDF

SpectrumDF is an implementation of the Spectrum proxy for Dragonfly servers.

Examples

You can find examples of how to use SpectrumDF in the example directory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication added in v0.0.2

type Authentication interface {
	Authenticate(identityData login.IdentityData, token string) bool
}

type Client

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

func NewClient

func NewClient(addr string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) WritePacket

func (c *Client) WritePacket(pk packet.Packet) error

type Listener

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

func NewListener

func NewListener(addr string, auth Authentication) (Listener, error)

func (Listener) Accept

func (l Listener) Accept() (session.Conn, error)

Accept ...

func (Listener) Close

func (l Listener) Close() error

Close ...

func (Listener) Disconnect

func (l Listener) Disconnect(conn session.Conn, _ string) error

Disconnect ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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