deprecated_overflow_gateway.../server/server.go

20 lines
345 B
Go
Raw Normal View History

2017-09-11 02:24:18 +00:00
package server
import (
"context"
2017-09-19 08:38:59 +00:00
"git.loafle.net/overflow/overflow_gateway_probe/conf"
2017-09-11 02:24:18 +00:00
ogw "git.loafle.net/overflow/overflow_gateway_websocket"
)
var _s ogw.Server
func NewServer(ctx context.Context) ogw.Server {
h := newServerHandler(ctx)
_s := ogw.NewServer(ctx, h)
2017-09-19 08:38:59 +00:00
ofSigningKey = []byte(conf.Config.Auth.SigningKey)
2017-09-11 02:24:18 +00:00
return _s
}