signaller/cmd/main.go

24 lines
377 B
Go
Raw Normal View History

2019-07-18 14:10:43 +00:00
package main
import (
"log"
2019-07-20 16:33:02 +00:00
"github.com/nxshock/signaller/internal"
"github.com/nxshock/signaller/internal/backends/memory"
2019-07-18 14:10:43 +00:00
)
var (
server *internal.Server
2019-07-18 14:10:43 +00:00
)
func init() {
server = internal.New()
2019-07-18 14:10:43 +00:00
server.Address = "localhost"
server.Backend = memory.NewBackend(server.Address)
2019-07-18 14:10:43 +00:00
server.Backend.Register("andrew", "1", "")
}
func main() {
log.Println(server.Run())
}