login

package
v0.0.0-...-34f5af7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Name   string
	Config *core.Config
	Logger *logrus.Logger
	// contains filtered or unexported fields
}

Server is the LOGIN server implementation. Clients connect to this server after going through the DATA server, its main responsibility is to authenticate the client's username/password and set some initial state on the client before redirecting them to the CHARACTER server.

func (*Server) Handle

func (s *Server) Handle(ctx context.Context, c *client.Client, data []byte) error

func (*Server) Handshake

func (s *Server) Handshake(c *client.Client) error

func (*Server) Identifier

func (s *Server) Identifier() string

func (*Server) Init

func (s *Server) Init(_ context.Context) error

func (*Server) SetUpClient

func (s *Server) SetUpClient(c *client.Client)

Jump to

Keyboard shortcuts

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