auth

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BadUserOrPassphraseError = errors.New("Bad username or passphrase")
)

Functions

This section is empty.

Types

type AuthZDescriptor

type AuthZDescriptor struct {
	CreateCharacter  bool
	PossessCharacter bool
	MayLogin         bool
	ServerOperations bool
	EditWorld        bool
}

type Server

type Server struct {
	AccountDatabaseFile string
	// contains filtered or unexported fields
}

func (*Server) AddActorIDToAccountID

func (s *Server) AddActorIDToAccountID(acctID, actorID uuid2.UUID) error

func (*Server) CreateAccount

func (s *Server) CreateAccount(user, pass string) error

func (*Server) DoLogin

func (s *Server) DoLogin(user, pass string) (uuid2.UUID, *AuthZDescriptor, error)

func (*Server) GetActorIDsForAccountID

func (s *Server) GetActorIDsForAccountID(acctID uuid2.UUID) []uuid2.UUID

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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