Documentation
¶
Index ¶
Constants ¶
View Source
const ( MOST_RECENT = 0 OFFSET_PARAM = "offset" LIMIT_PARAM = "limit" MARKDOWN_PARAM = "markdown" )
View Source
const SHORT_LIMIT = 480
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLGenerator ¶
type URLGenerator interface {
IndexPage() string
LoginPage() string
SignupPage() string
Auth() string
Me() string
UserRecord(udid string) string
UserRecordResource() string
PostResource() string
Posts(offset int, limit int) string
Post(id int64, wantMarkdown bool) string
PostView(id int64) string
PostEdit(id int64) string
NewPost() string
}
A UrlGenerator is a utility type to insure that all your code can easily "agree" on the URLs inside your application.
var URLGen URLGenerator
URLGen is an implementation of URLGenerator for this application. It is visible to both the client and the server and should be used for creating paths within the application.
Click to show internal directories.
Click to hide internal directories.