Documentation
¶
Index ¶
- func BuildRouter(c *services.Container) error
- func Register(h Handler)
- func SendPhoneVerification(ctx echo.Context, container *services.Container, user *ent.User, method string) error
- type API
- func (h *API) AdminGetUser(ctx echo.Context) error
- func (h *API) AdminListUsers(ctx echo.Context) error
- func (h *API) AdminOverview(ctx echo.Context) error
- func (h *API) AdminVerifyUser(ctx echo.Context) error
- func (h *API) ChangePassword(ctx echo.Context) error
- func (h *API) CreateTask(ctx echo.Context) error
- func (h *API) DeactivateAccount(ctx echo.Context) error
- func (h *API) ForgotPassword(ctx echo.Context) error
- func (h *API) GetProfile(ctx echo.Context) error
- func (h *API) HandleWebhook(c echo.Context) error
- func (h *API) HealthCheck(ctx echo.Context) error
- func (h *API) Init(c *services.Container) error
- func (h *API) ListFiles(ctx echo.Context) error
- func (h *API) Login(ctx echo.Context) error
- func (h *API) Logout(ctx echo.Context) error
- func (h *API) Register(ctx echo.Context) error
- func (h *API) ResendVerification(ctx echo.Context) error
- func (h *API) ResetPassword(ctx echo.Context) error
- func (h *API) Routes(g *echo.Group)
- func (h *API) Search(ctx echo.Context) error
- func (h *API) SubmitContact(ctx echo.Context) error
- func (h *API) UpdateProfile(ctx echo.Context) error
- func (h *API) UpdateProfilePicture(ctx echo.Context) error
- func (h *API) UploadFile(ctx echo.Context) error
- func (h *API) VerifyWebhook(c echo.Context) error
- type Admin
- func (h *Admin) AdminTasks(ctx echo.Context) error
- func (h *Admin) Backlite(handler func(http.ResponseWriter, *http.Request) error) echo.HandlerFunc
- func (h *Admin) EntityAdd(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityAddSubmit(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityDelete(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityDeleteSubmit(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityEdit(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityEditSubmit(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityList(n *gen.Type) echo.HandlerFunc
- func (h *Admin) EntityView(n *gen.Type) echo.HandlerFunc
- func (h *Admin) Init(c *services.Container) error
- func (h *Admin) Overview() echo.HandlerFunc
- func (h *Admin) Routes(g *echo.Group)
- func (h *Admin) VerifyUser(ctx echo.Context) error
- type Auth
- func (h *Auth) ForgotPasswordPage(ctx echo.Context) error
- func (h *Auth) ForgotPasswordSubmit(ctx echo.Context) error
- func (h *Auth) Init(c *services.Container) error
- func (h *Auth) LoginPage(ctx echo.Context) error
- func (h *Auth) LoginSubmit(ctx echo.Context) error
- func (h *Auth) Logout(ctx echo.Context) error
- func (h *Auth) RegisterPage(ctx echo.Context) error
- func (h *Auth) RegisterSubmit(ctx echo.Context) error
- func (h *Auth) ResendVerification(ctx echo.Context) error
- func (h *Auth) ResetPasswordPage(ctx echo.Context) error
- func (h *Auth) ResetPasswordSubmit(ctx echo.Context) error
- func (h *Auth) Routes(g *echo.Group)
- func (h *Auth) VerificationNotice(ctx echo.Context) error
- func (h *Auth) VerifyEmail(ctx echo.Context) error
- type ButtonMessage
- type Cache
- type CacheManagement
- type Contact
- type Documents
- func (h *Documents) DeleteDocument(ctx echo.Context) error
- func (h *Documents) Init(c *services.Container) error
- func (h *Documents) ListDocuments(ctx echo.Context) error
- func (h *Documents) Routes(g *echo.Group)
- func (h *Documents) UploadDocumentsPage(ctx echo.Context) error
- func (h *Documents) UploadDocumentsSubmit(ctx echo.Context) error
- func (h *Documents) ViewDocument(ctx echo.Context) error
- type Error
- type Files
- type Handler
- type Message
- type Notes
- func (h *Notes) CreateNotePage(ctx echo.Context) error
- func (h *Notes) CreateNoteSubmit(ctx echo.Context) error
- func (h *Notes) DeleteNote(ctx echo.Context) error
- func (h *Notes) EditNotePage(ctx echo.Context) error
- func (h *Notes) EditNoteSubmit(ctx echo.Context) error
- func (h *Notes) Init(c *services.Container) error
- func (h *Notes) LikeNote(ctx echo.Context) error
- func (h *Notes) ListNotes(ctx echo.Context) error
- func (h *Notes) RepostNote(ctx echo.Context) error
- func (h *Notes) Routes(g *echo.Group)
- func (h *Notes) UnlikeNote(ctx echo.Context) error
- func (h *Notes) UnrepostNote(ctx echo.Context) error
- func (h *Notes) ViewNote(ctx echo.Context) error
- func (h *Notes) ViewSharedNote(ctx echo.Context) error
- type Pages
- func (h *Pages) About(ctx echo.Context) error
- func (h *Pages) AuthenticatedHome(ctx echo.Context) error
- func (h *Pages) Dashboard(ctx echo.Context) error
- func (h *Pages) Init(c *services.Container) error
- func (h *Pages) PublicHome(ctx echo.Context) error
- func (h *Pages) QuizzesPage(ctx echo.Context) error
- func (h *Pages) Routes(g *echo.Group)
- type Profile
- func (h *Profile) ChangePasswordPage(ctx echo.Context) error
- func (h *Profile) ChangePasswordSubmit(ctx echo.Context) error
- func (h *Profile) DeactivateAccountPage(ctx echo.Context) error
- func (h *Profile) DeactivateAccountSubmit(ctx echo.Context) error
- func (h *Profile) Init(c *services.Container) error
- func (h *Profile) ProfileEditPage(ctx echo.Context) error
- func (h *Profile) ProfilePage(ctx echo.Context) error
- func (h *Profile) ProfilePicturePage(ctx echo.Context) error
- func (h *Profile) ProfilePictureSubmit(ctx echo.Context) error
- func (h *Profile) ProfileUpdate(ctx echo.Context) error
- func (h *Profile) Routes(g *echo.Group)
- type Progress
- type Quiz
- func (h *Quiz) CreateQuizPage(ctx echo.Context) error
- func (h *Quiz) CreateQuizSubmit(ctx echo.Context) error
- func (h *Quiz) DeleteQuiz(ctx echo.Context) error
- func (h *Quiz) EditQuizPage(ctx echo.Context) error
- func (h *Quiz) EditQuizSubmit(ctx echo.Context) error
- func (h *Quiz) Init(c *services.Container) error
- func (h *Quiz) ListQuizzes(ctx echo.Context) error
- func (h *Quiz) Routes(g *echo.Group)
- func (h *Quiz) SubmitQuiz(ctx echo.Context) error
- func (h *Quiz) TakeQuiz(ctx echo.Context) error
- func (h *Quiz) ViewQuiz(ctx echo.Context) error
- type Search
- type Status
- type StudyGroups
- func (h *StudyGroups) CreateStudyGroupPage(ctx echo.Context) error
- func (h *StudyGroups) CreateStudyGroupSubmit(ctx echo.Context) error
- func (h *StudyGroups) Init(c *services.Container) error
- func (h *StudyGroups) JoinStudyGroup(ctx echo.Context) error
- func (h *StudyGroups) LeaveStudyGroup(ctx echo.Context) error
- func (h *StudyGroups) ListStudyGroups(ctx echo.Context) error
- func (h *StudyGroups) Routes(g *echo.Group)
- func (h *StudyGroups) ViewStudyGroup(ctx echo.Context) error
- type Task
- type TextMessage
- type WebhookPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) HandleWebhook ¶
HandleWebhook processes incoming WhatsApp messages and button responses
func (*API) HealthCheck ¶
HealthCheck for API availability
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
func (*Admin) AdminTasks ¶
AdminTasks displays the admin tasks page with proper layout
func (*Admin) Backlite ¶
func (h *Admin) Backlite(handler func(http.ResponseWriter, *http.Request) error) echo.HandlerFunc
func (*Admin) EntityAddSubmit ¶
func (h *Admin) EntityAddSubmit(n *gen.Type) echo.HandlerFunc
func (*Admin) EntityDelete ¶
func (h *Admin) EntityDelete(n *gen.Type) echo.HandlerFunc
func (*Admin) EntityDeleteSubmit ¶
func (h *Admin) EntityDeleteSubmit(n *gen.Type) echo.HandlerFunc
func (*Admin) EntityEdit ¶
func (h *Admin) EntityEdit(n *gen.Type) echo.HandlerFunc
func (*Admin) EntityEditSubmit ¶
func (h *Admin) EntityEditSubmit(n *gen.Type) echo.HandlerFunc
func (*Admin) EntityList ¶
func (h *Admin) EntityList(n *gen.Type) echo.HandlerFunc
func (*Admin) EntityView ¶
func (h *Admin) EntityView(n *gen.Type) echo.HandlerFunc
func (*Admin) Overview ¶
func (h *Admin) Overview() echo.HandlerFunc
Overview displays the admin dashboard
type ButtonMessage ¶
type CacheManagement ¶
type CacheManagement struct {
// contains filtered or unexported fields
}
func (*CacheManagement) ClearCache ¶
func (h *CacheManagement) ClearCache(ctx echo.Context) error
func (*CacheManagement) ClearCachePattern ¶
func (h *CacheManagement) ClearCachePattern(ctx echo.Context) error
func (*CacheManagement) Routes ¶
func (h *CacheManagement) Routes(g *echo.Group)
type Documents ¶
type Documents struct {
// contains filtered or unexported fields
}
func (*Documents) DeleteDocument ¶
DeleteDocument handles document deletion
func (*Documents) ListDocuments ¶
ListDocuments displays all documents
func (*Documents) UploadDocumentsPage ¶
UploadDocumentsPage displays the document upload form
func (*Documents) UploadDocumentsSubmit ¶
UploadDocumentsSubmit handles document upload
type Handler ¶
type Handler interface {
// Routes allows for self-registration of HTTP routes on the router
Routes(g *echo.Group)
// Init provides the service container to initialize
Init(*services.Container) error
}
Handler handles one or more HTTP routes
type Message ¶
type Message struct {
From string `json:"from"`
ID string `json:"id"`
Timestamp string `json:"timestamp"`
Type string `json:"type"`
Text *TextMessage `json:"text,omitempty"`
Button *ButtonMessage `json:"button,omitempty"`
}
type Notes ¶
type Notes struct {
// contains filtered or unexported fields
}
func (*Notes) CreateNotePage ¶
CreateNotePage displays the create note form
func (*Notes) CreateNoteSubmit ¶
CreateNoteSubmit handles note creation
func (*Notes) DeleteNote ¶
DeleteNote handles note deletion
func (*Notes) EditNotePage ¶
EditNotePage displays the edit note form
func (*Notes) EditNoteSubmit ¶
EditNoteSubmit handles note editing
func (*Notes) RepostNote ¶
RepostNote handles reposting a note
func (*Notes) UnlikeNote ¶
UnlikeNote handles unliking a note
func (*Notes) UnrepostNote ¶
UnrepostNote handles unreposting a note
type Pages ¶
type Pages struct {
// contains filtered or unexported fields
}
func (*Pages) AuthenticatedHome ¶
AuthenticatedHome serves the authenticated user's home page
func (*Pages) PublicHome ¶
PublicHome serves the public landing page for non-authenticated users
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func (*Profile) ChangePasswordSubmit ¶
func (*Profile) DeactivateAccountPage ¶
func (*Profile) DeactivateAccountSubmit ¶
func (*Profile) ProfilePictureSubmit ¶
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func (*Progress) ExportProgress ¶
ExportProgress handles progress report export
func (*Progress) ViewAnalytics ¶
ViewAnalytics displays detailed analytics
type Quiz ¶
type Quiz struct {
// contains filtered or unexported fields
}
func (*Quiz) CreateQuizPage ¶
CreateQuizPage displays the quiz creation form
func (*Quiz) CreateQuizSubmit ¶
CreateQuizSubmit handles quiz creation
func (*Quiz) DeleteQuiz ¶
DeleteQuiz handles quiz deletion
func (*Quiz) EditQuizPage ¶
EditQuizPage displays the quiz edit form
func (*Quiz) EditQuizSubmit ¶
EditQuizSubmit handles quiz updates
func (*Quiz) ListQuizzes ¶
ListQuizzes displays all quizzes
func (*Quiz) SubmitQuiz ¶
SubmitQuiz handles quiz submission
type StudyGroups ¶
type StudyGroups struct {
// contains filtered or unexported fields
}
func (*StudyGroups) CreateStudyGroupPage ¶
func (h *StudyGroups) CreateStudyGroupPage(ctx echo.Context) error
CreateStudyGroupPage displays the study group creation form
func (*StudyGroups) CreateStudyGroupSubmit ¶
func (h *StudyGroups) CreateStudyGroupSubmit(ctx echo.Context) error
CreateStudyGroupSubmit handles study group creation
func (*StudyGroups) JoinStudyGroup ¶
func (h *StudyGroups) JoinStudyGroup(ctx echo.Context) error
JoinStudyGroup handles joining a study group
func (*StudyGroups) LeaveStudyGroup ¶
func (h *StudyGroups) LeaveStudyGroup(ctx echo.Context) error
LeaveStudyGroup handles leaving a study group
func (*StudyGroups) ListStudyGroups ¶
func (h *StudyGroups) ListStudyGroups(ctx echo.Context) error
ListStudyGroups displays all study groups
func (*StudyGroups) Routes ¶
func (h *StudyGroups) Routes(g *echo.Group)
func (*StudyGroups) ViewStudyGroup ¶
func (h *StudyGroups) ViewStudyGroup(ctx echo.Context) error
ViewStudyGroup displays a specific study group
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
type TextMessage ¶
type TextMessage struct {
Body string `json:"body"`
}
type WebhookPayload ¶
type WebhookPayload struct {
Statuses []Status `json:"statuses,omitempty"`
Messages []Message `json:"messages,omitempty"`
}
WhatsApp webhook payload structures