types

package
v0.0.0-...-d78814b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PUBLIC   PostPrivacy = "public"
	PRIVATE              = "private"
	UNLISTED             = "unlisted"
	DRAFT                = "draft"
)

Post privacy constants.

View Source
const (
	ActionSave    = "save"
	ActionDelete  = "delete"
	ActionPreview = "preview"
	ActionPost    = "post"
)

Common form actions.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType string

ContentType values

const (
	MARKDOWN ContentType = "markdown"
	HTML     ContentType = "html"
)

Content types for blog posts.

type Key

type Key int

Key is an integer enum for context.Context keys.

const (
	SessionKey   Key = iota // The request's cookie session object.
	UserKey                 // The request's user data for logged-in users.
	StartTimeKey            // HTTP request start time.
)

Key definitions.

type PostPrivacy

type PostPrivacy string

PostPrivacy values.

Jump to

Keyboard shortcuts

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