handler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Overview

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(opts Options) (*Handler, error)

func (*Handler) AboutShow added in v1.0.1

func (x *Handler) AboutShow(w http.ResponseWriter, r *http.Request)

func (*Handler) AccessDeniedError

func (x *Handler) AccessDeniedError(w http.ResponseWriter)

func (*Handler) AccountCreate added in v1.0.1

func (x *Handler) AccountCreate(w http.ResponseWriter, r *http.Request)

func (*Handler) AccountDelete added in v1.0.1

func (x *Handler) AccountDelete(w http.ResponseWriter, r *http.Request)

func (*Handler) AccountShowCreate added in v1.0.1

func (x *Handler) AccountShowCreate(w http.ResponseWriter, r *http.Request)

func (*Handler) BadFormDataError

func (x *Handler) BadFormDataError(w http.ResponseWriter, err error, hints ...string)

func (*Handler) BadRefIDError

func (x *Handler) BadRefIDError(w http.ResponseWriter, reftyp string, err error)

func (*Handler) BadRequestError

func (x *Handler) BadRequestError(w http.ResponseWriter, msg string)

func (*Handler) BadSessionDataError

func (x *Handler) BadSessionDataError(w http.ResponseWriter)

func (*Handler) CreateEarmarkShowCreateForm added in v1.0.1

func (x *Handler) CreateEarmarkShowCreateForm(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateEventShowAddForm added in v1.0.1

func (x *Handler) CreateEventShowAddForm(w http.ResponseWriter, r *http.Request)

func (*Handler) DBError

func (x *Handler) DBError(w http.ResponseWriter, err error)

func (*Handler) DashboardShow added in v1.0.1

func (x *Handler) DashboardShow(w http.ResponseWriter, r *http.Request)

func (*Handler) EarmarkCreate added in v1.0.1

func (x *Handler) EarmarkCreate(w http.ResponseWriter, r *http.Request)

func (*Handler) EarmarkDelete added in v1.0.1

func (x *Handler) EarmarkDelete(w http.ResponseWriter, r *http.Request)

func (*Handler) EarmarksList added in v1.0.1

func (x *Handler) EarmarksList(w http.ResponseWriter, r *http.Request)

func (*Handler) Error

func (x *Handler) Error(w http.ResponseWriter, statusMsg string, code int)

func (*Handler) EventCreate added in v1.0.1

func (x *Handler) EventCreate(w http.ResponseWriter, r *http.Request)

func (*Handler) EventDelete added in v1.0.1

func (x *Handler) EventDelete(w http.ResponseWriter, r *http.Request)

func (*Handler) EventItemCreate added in v1.0.1

func (x *Handler) EventItemCreate(w http.ResponseWriter, r *http.Request)

func (*Handler) EventItemDelete added in v1.0.1

func (x *Handler) EventItemDelete(w http.ResponseWriter, r *http.Request)

func (*Handler) EventItemShowCreateForm added in v1.0.1

func (x *Handler) EventItemShowCreateForm(w http.ResponseWriter, r *http.Request)

func (*Handler) EventItemShowEditForm added in v1.0.1

func (x *Handler) EventItemShowEditForm(w http.ResponseWriter, r *http.Request)

func (*Handler) EventItemSortingUpdate added in v1.0.1

func (x *Handler) EventItemSortingUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) EventItemUpdate added in v1.0.1

func (x *Handler) EventItemUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) EventShow added in v1.0.1

func (x *Handler) EventShow(w http.ResponseWriter, r *http.Request)

func (*Handler) EventShowEditForm added in v1.0.1

func (x *Handler) EventShowEditForm(w http.ResponseWriter, r *http.Request)

func (*Handler) EventUpdate added in v1.0.1

func (x *Handler) EventUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) EventsList added in v1.0.1

func (x *Handler) EventsList(w http.ResponseWriter, r *http.Request)

func (*Handler) FavoriteAdd added in v1.0.1

func (x *Handler) FavoriteAdd(w http.ResponseWriter, r *http.Request)

func (*Handler) FavoriteDelete added in v1.0.1

func (x *Handler) FavoriteDelete(w http.ResponseWriter, r *http.Request)

func (*Handler) FavoritesList added in v1.0.1

func (x *Handler) FavoritesList(w http.ResponseWriter, r *http.Request)

func (*Handler) ForbiddenError

func (x *Handler) ForbiddenError(w http.ResponseWriter, msg string)

func (*Handler) ForgotPasswordShowForm added in v1.0.1

func (x *Handler) ForgotPasswordShowForm(w http.ResponseWriter, r *http.Request)

func (*Handler) IndexShow added in v1.0.1

func (x *Handler) IndexShow(w http.ResponseWriter, r *http.Request)

func (*Handler) InternalServerError

func (x *Handler) InternalServerError(w http.ResponseWriter, msg string)

func (*Handler) Json

func (x *Handler) Json(w http.ResponseWriter, code int, payload interface{})

func (*Handler) Login

func (x *Handler) Login(w http.ResponseWriter, r *http.Request)

func (*Handler) LoginShowForm added in v1.0.1

func (x *Handler) LoginShowForm(w http.ResponseWriter, r *http.Request)

func (*Handler) Logout

func (x *Handler) Logout(w http.ResponseWriter, r *http.Request)

func (*Handler) NotFoundError

func (x *Handler) NotFoundError(w http.ResponseWriter)

func (*Handler) NotFoundHandler

func (x *Handler) NotFoundHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) NotificationDelete added in v1.0.1

func (x *Handler) NotificationDelete(w http.ResponseWriter, r *http.Request)

func (*Handler) NotificationsDeleteAll added in v1.0.1

func (x *Handler) NotificationsDeleteAll(w http.ResponseWriter, r *http.Request)

func (*Handler) NotificationsList added in v1.0.1

func (x *Handler) NotificationsList(w http.ResponseWriter, r *http.Request)

func (*Handler) PasswordReset added in v1.0.1

func (x *Handler) PasswordReset(w http.ResponseWriter, r *http.Request)

func (*Handler) PasswordResetShowForm added in v1.0.1

func (x *Handler) PasswordResetShowForm(w http.ResponseWriter, r *http.Request)

func (*Handler) PostmarkCallback

func (x *Handler) PostmarkCallback(w http.ResponseWriter, r *http.Request)

func (*Handler) ResetPasswordSendEmail added in v1.0.1

func (x *Handler) ResetPasswordSendEmail(w http.ResponseWriter, r *http.Request)

func (*Handler) SettingsAuthApiUpdate added in v1.0.1

func (x *Handler) SettingsAuthApiUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) SettingsAuthUpdate added in v1.0.1

func (x *Handler) SettingsAuthUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) SettingsRemindersUpdate added in v1.0.1

func (x *Handler) SettingsRemindersUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) SettingsShow added in v1.0.1

func (x *Handler) SettingsShow(w http.ResponseWriter, r *http.Request)

func (*Handler) SettingsUpdate added in v1.0.1

func (x *Handler) SettingsUpdate(w http.ResponseWriter, r *http.Request)

func (*Handler) ShowProfile

func (x *Handler) ShowProfile(w http.ResponseWriter, r *http.Request)

func (*Handler) Template

func (x *Handler) Template(name string) (resources.TExecuter, error)

func (*Handler) TemplateError

func (x *Handler) TemplateError(w http.ResponseWriter)

func (*Handler) TemplateExecute

func (x *Handler) TemplateExecute(w io.Writer, name string, vars MapSA) error

func (*Handler) TemplateExecuteSub

func (x *Handler) TemplateExecuteSub(w io.Writer, name, subname string, vars MapSA) error

func (*Handler) VerifyEmail

func (x *Handler) VerifyEmail(w http.ResponseWriter, r *http.Request)

func (*Handler) VerifySendEmail added in v1.0.1

func (x *Handler) VerifySendEmail(w http.ResponseWriter, r *http.Request)

func (*Handler) WebAuthnBeginLogin

func (x *Handler) WebAuthnBeginLogin(w http.ResponseWriter, r *http.Request)

func (*Handler) WebAuthnBeginRegistration

func (x *Handler) WebAuthnBeginRegistration(w http.ResponseWriter, r *http.Request)

func (*Handler) WebAuthnDeleteKey added in v1.0.1

func (x *Handler) WebAuthnDeleteKey(w http.ResponseWriter, r *http.Request)

func (*Handler) WebAuthnFinishLogin

func (x *Handler) WebAuthnFinishLogin(w http.ResponseWriter, r *http.Request)

func (*Handler) WebAuthnFinishRegistration

func (x *Handler) WebAuthnFinishRegistration(w http.ResponseWriter, r *http.Request)

type MapSA

type MapSA = map[string]any

type Options

type Options struct {
	Db           model.PgxHandle        `validate:"required"`
	Redis        *redis.Client          `validate:"required"`
	Templates    resources.TGetter      `validate:"required"`
	SessMgr      session.SessionManager `validate:"required"`
	Mailer       mail.MailSender        `validate:"required"`
	HMACKeyBytes []byte                 `validate:"required"`
	BaseURL      string                 `validate:"required"`
	IsProd       bool
}

type PostMarkRecord

type PostMarkRecord struct {
	RecordType        string
	MessageStream     string
	SuppressionReason string
	Recipient         string
	SuppressSending   bool
}

Jump to

Keyboard shortcuts

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