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