Initial dumb servers

This commit is contained in:
Bel LaPointe
2019-03-14 14:43:02 -06:00
commit 1f679f4c06
10 changed files with 381 additions and 0 deletions

20
server/serve/new.go Normal file
View File

@@ -0,0 +1,20 @@
package serve
import (
"local/dynamodb/server/config"
"local/s2sa/s2sa/server/router"
"strings"
)
type Server struct {
port string
router *router.Router
}
func New() *Server {
config := config.Values()
return &Server{
port: ":" + strings.TrimPrefix(config.Port, ":"),
router: router.New(),
}
}