neko/internal/api/member/handler.go

33 lines
459 B
Go
Raw Normal View History

2020-10-31 06:16:21 +13:00
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
}