mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-25 18:40:03 +01:00
18 lines
377 B
Go
18 lines
377 B
Go
package main
|
|
|
|
import (
|
|
"github.com/twofas/2fas-server/config"
|
|
"github.com/twofas/2fas-server/internal/common/logging"
|
|
"github.com/twofas/2fas-server/internal/websocket"
|
|
)
|
|
|
|
func main() {
|
|
logging.WithDefaultField("service_name", "websocket_api")
|
|
|
|
config.LoadConfiguration()
|
|
|
|
server := websocket.NewServer(config.Config.Websocket.ListenAddr)
|
|
|
|
server.RunWebsocketServer()
|
|
}
|