models

package
v0.0.0-...-b860962 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPErrorMessages = map[int]HTTPError{
	http.StatusForbidden: {
		Code:        "403",
		Title:       "Forbidden",
		Header:      "Denied!",
		Description: "Sorry, you can't see that page. You'll find lots to explore on the home page.",
	},
	http.StatusNotFound: {
		Code:        "404",
		Title:       "Page not found",
		Header:      "Something's missing.",
		Description: "Sorry, we can't find that page. You'll find lots to explore on the home page.",
	},
	http.StatusGone: {
		Code:        "410",
		Title:       "Gone",
		Header:      "And it's gone!",
		Description: "Sorry, that page was deleted. You'll find lots to explore on the home page.",
	},
	http.StatusInternalServerError: {
		Code:        "500",
		Title:       "Internal server error",
		Header:      "Uh-oh.",
		Description: "We are already working to solve the problem.",
	},
	http.StatusBadGateway: {
		Code:        "502",
		Title:       "Bad gateway",
		Header:      "D'oh!",
		Description: "We are already working to solve the problem.",
	},
}

Functions

This section is empty.

Types

type Contact

type Contact struct {
	ID    string
	Name  string
	Email string
}

type Contacts

type Contacts []Contact

func NewContacts

func NewContacts(start int, num int) Contacts

type HTTPError

type HTTPError struct {
	Code        string
	Title       string
	Header      string
	Description string
}

type Settings

type Settings struct {
	CSSFiles     []string
	JSFile       string
	IsProduction bool
	ShowNav      bool
	Title        string
}

Jump to

Keyboard shortcuts

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