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