2019-07-18 14:10:43 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
2019-07-19 07:39:53 +00:00
|
|
|
|
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 (
|
2019-07-19 07:39:53 +00:00
|
|
|
server *internal.Server
|
2019-07-18 14:10:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2019-07-19 07:39:53 +00:00
|
|
|
server = internal.New()
|
2019-07-18 14:10:43 +00:00
|
|
|
server.Address = "localhost"
|
2019-07-20 16:33:02 +00:00
|
|
|
server.Backend = memory.NewBackend()
|
2019-07-18 14:10:43 +00:00
|
|
|
server.Backend.Register("andrew", "1", "")
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
log.Println(server.Run())
|
|
|
|
}
|