telnet

package
v0.0.0-...-8d7dea8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultListenAddr      = ":4000"
	DefaultMessageQueueLen = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	CreateAccount(username, pass string) error
	DoLogin(user, pass string) (uuid.UUID, *auth.AuthZDescriptor, error)
	GetActorIDsForAccountID(acctID uuid.UUID) []uuid.UUID
	AddActorIDToAccountID(acctID, actorID uuid.UUID) error
}

type Server

type Server struct {
	ListenAddr      string
	MessageQueueLen int
	AuthService     AuthService
	World           *core.World
	// contains filtered or unexported fields
}

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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