signaller/cmd/main.go

23 lines
323 B
Go
Raw Normal View History

2019-07-18 14:10:43 +00:00
package main
import (
"log"
internal "github.com/nxshock/signaller/internal"
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 = internal.NewMemoryBackend()
2019-07-18 14:10:43 +00:00
server.Backend.Register("andrew", "1", "")
}
func main() {
log.Println(server.Run())
}