Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SnippetModel ¶
func (*SnippetModel) Get ¶
func (m *SnippetModel) Get(id int) (Snippet, error)
Return a snippet based on id
func (*SnippetModel) Insert ¶
func (m *SnippetModel) Insert(title, content string, expires int) (int, error)
Insert a snippet
func (*SnippetModel) Latest ¶
func (m *SnippetModel) Latest() ([]Snippet, error)
Return 10 most recently created snippets
type SnippetModelInterface ¶
type UserModel ¶
func (*UserModel) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.