This section is empty.


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

ErrBC user sent bad userName and password combination

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

ErrCC ctx.Done() signal was received

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

ErrDBE database exception

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

ErrNoWorld no world is available

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

ErrWTO world service timed out


func Migrate

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

Migrate database

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


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