Documentation
¶
Overview ¶
templ: version: v0.3.906
templ: version: v0.3.906
templ: version: v0.3.906
templ: version: v0.3.906
templ: version: v0.3.906
templ: version: v0.3.906
Index ¶
- func Dashboard(title string, user *data.User, userCount int, models []string) templ.Component
- func Error(title string, user *data.User, e HttpError) templ.Component
- func Intro(title string, user *data.User, year int) templ.Component
- func Login(title string, user *data.User) templ.Component
- func Logout(title string, user *data.User) templ.Component
- func Table(title, model string, user *data.User, table string, ...) templ.Component
- type HttpError
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpError ¶
type HttpError struct {
StatusCode int `json:"status_code"`
Message string `json:"message"`
Description string `json:"description"`
}
func NewHttpError ¶
func NewHttpError(statusCode int, opts ...OptionFunc) HttpError
type OptionFunc ¶
type OptionFunc func(*HttpError)
func WithDescription ¶
func WithDescription(description string) OptionFunc
func WithMessage ¶
func WithMessage(message string) OptionFunc
Click to show internal directories.
Click to hide internal directories.