Initial chat prototype

This commit is contained in:
Andrew Gutekanst
2020-01-19 12:52:57 -05:00
parent e6d7b7b9c2
commit fa608fa555
73 changed files with 1646 additions and 714 deletions

View File

@@ -1,7 +1,6 @@
package signserver
import (
"database/sql"
"fmt"
"io"
"net"
@@ -9,13 +8,14 @@ import (
"github.com/Andoryuuta/Erupe/config"
"github.com/Andoryuuta/Erupe/network"
"github.com/jmoiron/sqlx"
"go.uber.org/zap"
)
// Config struct allows configuring the server.
type Config struct {
Logger *zap.Logger
DB *sql.DB
DB *sqlx.DB
ErupeConfig *config.Config
}
@@ -26,7 +26,7 @@ type Server struct {
erupeConfig *config.Config
sid int
sessions map[int]*Session
db *sql.DB
db *sqlx.DB
listener net.Listener
isShuttingDown bool
}