You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
348 B
Go

package context
import (
"github.com/gin-gonic/gin"
socketio "github.com/googollee/go-socket.io"
2 years ago
eventemitter "github.com/hyperzlib/go-event-emitter"
)
type ServerContext struct {
EventSource *eventemitter.Emitter
Sockets *socketio.Server
HttpServer *gin.Engine
}
func NewServerContext() *ServerContext {
return new(ServerContext)
}