mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
33 lines
459 B
Go
33 lines
459 B
Go
|
package member
|
||
|
|
||
|
import (
|
||
|
"github.com/go-chi/chi"
|
||
|
|
||
|
"demodesk/neko/internal/types"
|
||
|
)
|
||
|
|
||
|
type MemberHandler struct {
|
||
|
sessions types.SessionManager
|
||
|
websocket types.WebSocketHandler
|
||
|
}
|
||
|
|
||
|
func New(
|
||
|
sessions types.SessionManager,
|
||
|
websocket types.WebSocketHandler,
|
||
|
) *MemberHandler {
|
||
|
// Init
|
||
|
|
||
|
return &MemberHandler{
|
||
|
sessions: sessions,
|
||
|
websocket: websocket,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (h *MemberHandler) Router() *chi.Mux {
|
||
|
r := chi.NewRouter()
|
||
|
|
||
|
// TODO
|
||
|
|
||
|
return r
|
||
|
}
|