model

package
v0.0.0-...-93140eb Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// URLItemType represents single URL items.
	URLItemType = iota

	// TextItemType is a text blob, possibly Markdown or Code snippets.
	TextItemType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType int

ContentType specifies what type of content an item contains.

type Item

type Item struct {
	Code      string      `json:"code"`
	Type      ContentType `json:"type"`
	Content   string      `json:"content" binding:"required"`
	CreatedAt time.Time   `json:"created_at"`
}

Item represents a single item stored and accessible via a short URL.

Jump to

Keyboard shortcuts

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