login

package
v0.0.0-...-525a05c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: GPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBC = errors.New("bad credentials")

ErrBC user sent bad userName and password combination

View Source
var ErrCC = errors.New("context was canceled")

ErrCC ctx.Done() signal was received

View Source
var ErrDBE = errors.New("database exception")

ErrDBE database exception

View Source
var ErrNoWorld = errors.New("no world is available")

ErrNoWorld no world is available

View Source
var ErrWTO = errors.New("world timed out")

ErrWTO world service timed out

Functions

func Start

func Start(cmd *cobra.Command, args []string)

Start the login service that is, use networking library to handle TCP connection configure networking library to use handlers implemented in this package for packets

Types

type User

type User struct {
	ID        uint64
	UserName  string
	Password  string
	DeletedAt time.Time `pg:"soft_delete"`
	// contains filtered or unexported fields
}

User model for schema: accounts

Jump to

Keyboard shortcuts

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