posts

package
v0.0.0-...-bf2806d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2014 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Id                int    `json:"id"`
	Title             string `json:"title"`
	AuthorId          int    `json:"authorId"`
	Author            string `json:"author"`
	Slug              string `json:"slug"`
	Content           string `json:"content"`
	RenderedContent   string `json:"renderedContent"`
	CreatedDateTime   string `json:"createdDateTime"`
	Permalink         string `json:"permalink"`
	PublishedDateTime string `json:"publishedDateTime"`
	PublishedYear     int    `json:"publishedYear"`
	PublishedMonth    int    `json:"publishedMonth"`
	PostStatusId      int    `json:"postStatusId"`
	Status            string `json:"status"`
	TagList           string `json:"tagList"`
	TagIdList         string `json:"tagIdList"`
}

type PostCollection

type PostCollection struct {
	CurrentPage  int    `json:"currentPage"`
	LastPage     int    `json:"lastPage"`
	NextPage     int    `json:"nextPage"`
	NumPages     int    `json:"numPages"`
	NumPosts     int    `json:"numPosts"`
	Posts        []Post `json:"posts"`
	PreviousPage int    `json:"previousPage"`
}

func NewPostCollection

func NewPostCollection() PostCollection

Creates a new PostCollection

Jump to

Keyboard shortcuts

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