mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-09 20:21:03 +00:00
23 lines
323 B
Go
23 lines
323 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
internal "github.com/nxshock/signaller/internal"
|
|
)
|
|
|
|
var (
|
|
server *internal.Server
|
|
)
|
|
|
|
func init() {
|
|
server = internal.New()
|
|
server.Address = "localhost"
|
|
server.Backend = internal.NewMemoryBackend()
|
|
server.Backend.Register("andrew", "1", "")
|
|
}
|
|
|
|
func main() {
|
|
log.Println(server.Run())
|
|
}
|