retropvp

package module
v0.0.0-...-6966b5a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MPL-2.0 Imports: 35 Imported by: 0

README

retropvp

CI

retropvp is an unofficial PVP game server of Dofus Retro.

[!WARNING] This repository is a WIP, and it's in a very early stage of development. I decided to make the repository public because a user requested that, and also in case anyone else finds it useful in its current state.

Build

git clone https://github.com/kralamoure/retropvp
cd retropvp
go build ./cmd/...

Installation

go install github.com/kralamoure/retropvp/cmd/retropvp@latest

Usage

retropvp --help
Output
retropvp is an unofficial PVP game server for Dofus Retro.

Find more information at: https://github.com/kralamoure/retropvp

Options:
  -h, --help               Print usage information
  -d, --debug              Enable debug mode
  -i, --id int             Server ID
  -a, --address string     Server listener address (default "0.0.0.0:5556")
  -p, --postgres string    PostgreSQL connection string (default "postgresql://user:password@host/database")
  -t, --timeout duration   Connection timeout (default 30m0s)
      --ticket duration    Ticket duration (default 20s)

Usage: retropvp [options]

Documentation

Overview

Package retropvp implements an unofficial PVP game server for Dofus Retro.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id          int
	Addr        string
	ConnTimeout time.Duration
	TicketDur   time.Duration
	Location    *time.Location
	Dofus       *dofussvc.Service
	Retro       *retrosvc.Service
	Logger      logging.Logger
}

type Server

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

func NewServer

func NewServer(c Config) (*Server, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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