handler

package
v0.0.0-...-5ee5942 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationHandler

type AuthenticationHandler struct {
	// contains filtered or unexported fields
}

AuthenticationHandler handles user login and logout.

func NewAuthenticationHandler

func NewAuthenticationHandler(db *bun.DB, sm *scs.SessionManager) *AuthenticationHandler

NewAuthenticationHandler creates a new authentication handler.

func (*AuthenticationHandler) Login

Login handles login page.

func (*AuthenticationHandler) Logout

func (h *AuthenticationHandler) Logout(c *server.Context) error

Logout handles logout page.

func (*AuthenticationHandler) Register

func (h *AuthenticationHandler) Register(g *echo.Group)

Register the handler.

type EditEventHandler

type EditEventHandler struct {
	// contains filtered or unexported fields
}

EditEventHandler handles adding and editing events.

func NewEditEventHandler

func NewEditEventHandler(db *bun.DB, sm *scs.SessionManager, finder TimezoneFinder) *EditEventHandler

NewEditEventHandler creates a new edit event handler.

func (*EditEventHandler) Delete

func (h *EditEventHandler) Delete(c *server.Context) error

Delete handles deleting events.

func (*EditEventHandler) Edit

func (h *EditEventHandler) Edit(c *server.Context) error

Edit handles adding and editing events.

func (*EditEventHandler) Preview

func (h *EditEventHandler) Preview(c *server.Context) error

Preview returns a preview of the event.

func (*EditEventHandler) Register

func (h *EditEventHandler) Register(g *echo.Group)

Register the handler.

type EventsHandler

type EventsHandler struct {
	// contains filtered or unexported fields
}

EventsHandler handles event pages rendering.

func NewEventsHandler

func NewEventsHandler(db *bun.DB, sm *scs.SessionManager) *EventsHandler

NewEventsHandler creates a new events handler.

func (*EventsHandler) MyEvents

func (h *EventsHandler) MyEvents(c *server.Context) error

MyEvents handles current user events.

func (*EventsHandler) Past

func (h *EventsHandler) Past(c *server.Context) error

Past handles past events.

func (*EventsHandler) Register

func (h *EventsHandler) Register(g *echo.Group)

Register the handler.

func (*EventsHandler) Tags

func (h *EventsHandler) Tags(c *server.Context) error

Tags handles tags.

func (*EventsHandler) Upcoming

func (h *EventsHandler) Upcoming(c *server.Context) error

Upcoming handles upcoming events.

type FeedHandler

type FeedHandler struct {
	// contains filtered or unexported fields
}

FeedHandler handles feed output.

func NewFeedHandler

func NewFeedHandler(db *bun.DB) *FeedHandler

NewFeedHandler creates a new feed handler.

func (*FeedHandler) HandleICal

func (h *FeedHandler) HandleICal(c *server.Context) error

HandleICal handles iCal feeds.

func (*FeedHandler) HandleRSS

func (h *FeedHandler) HandleRSS(c *server.Context) error

HandleRSS handles RSS feeds.

func (*FeedHandler) Register

func (h *FeedHandler) Register(g *echo.Group)

Register the handler.

type SetupHandler

type SetupHandler struct {
	// contains filtered or unexported fields
}

SetupHandler handles setup pages.

func NewSetupHandler

func NewSetupHandler(db *bun.DB, sm *scs.SessionManager) *SetupHandler

NewSetupHandler creates a new setup handler.

func (*SetupHandler) Register

func (h *SetupHandler) Register(g *echo.Group)

Register the handler.

func (*SetupHandler) Setup

func (h *SetupHandler) Setup(c *server.Context) error

Setup handles the setup page.

type StopWordsHandler

type StopWordsHandler struct {
	// contains filtered or unexported fields
}

StopWordsHandler handles stop word pages.

func NewStopWordsHandler

func NewStopWordsHandler(db *bun.DB, sm *scs.SessionManager) *StopWordsHandler

NewStopWordsHandler creates a new stop words handler.

func (*StopWordsHandler) Register

func (h *StopWordsHandler) Register(g *echo.Group)

Register the handler.

func (*StopWordsHandler) StopWords

func (h *StopWordsHandler) StopWords(c *server.Context) error

StopWords renders the stopwords form page.

type TimezoneFinder

type TimezoneFinder interface {
	GetTimezoneName(lng, lat float64) string
}

TimezoneFinder finds timezone by geo coordinates.

type UsersHandler

type UsersHandler struct {
	// contains filtered or unexported fields
}

UsersHandler handles users pages.

func NewUsersHandler

func NewUsersHandler(db *bun.DB, sm *scs.SessionManager) *UsersHandler

NewUsersHandler creates a new users handler.

func (*UsersHandler) Delete

func (h *UsersHandler) Delete(c *server.Context) error

Delete a user.

func (*UsersHandler) Invite

func (h *UsersHandler) Invite(c *server.Context) error

Invite handles invite link generation.

func (*UsersHandler) Register

func (h *UsersHandler) Register(g *echo.Group)

Register the handler.

func (*UsersHandler) RegisterUser

func (h *UsersHandler) RegisterUser(c *server.Context) error

RegisterUser registers a user with an invite link.

func (*UsersHandler) UpgradeUserRole

func (h *UsersHandler) UpgradeUserRole(c *server.Context) error

UpgradeUserRole upgrades user role.

func (*UsersHandler) Users

func (h *UsersHandler) Users(c *server.Context) error

Users handles users page.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL