Documentation ¶
Index ¶
- Variables
- func AddEntry(e Entry) (string, error)
- func CreateCollection(c Collection) (string, error)
- func DeleteCollection(id string) error
- func DeleteEntry(id string) error
- func Hash(s string) string
- func UpdateCollection(c Collection) (string, error)
- func UpdateEntry(e Entry) error
- type Author
- type Collection
- type Entry
Constants ¶
This section is empty.
Variables ¶
View Source
var Appconf config.ConfigContainer
Functions ¶
func CreateCollection ¶
func CreateCollection(c Collection) (string, error)
func DeleteCollection ¶
func DeleteEntry ¶
func UpdateCollection ¶
func UpdateCollection(c Collection) (string, error)
func UpdateEntry ¶
Types ¶
type Author ¶
type Author struct { Name string `json:"name" form:"name"` Password string `json:"password" form:"password"` }
func AuthorByName ¶
type Collection ¶
type Collection struct { Id string `json:"id"` Title string `json:"title" form:"title"` Subtitle string `json:"subtitle" form:"subtitle"` Author string `json:"author"` Date string `json:"date"` }
func AllCollections ¶
func AllCollections() ([]Collection, error)
func CollectionById ¶
func CollectionById(id string) (Collection, error)
func CollectionsByUser ¶
func CollectionsByUser(name string) ([]Collection, error)
type Entry ¶
type Entry struct { Id string `json:"id"` Title string `json:"title" form:"title"` Subtitle string `json:"subtitle" form:"subtitle"` Author string `json:"author"` Date string `json:"date"` Collection string `json:"collection form:"collection"` Content string `json:"content" form:"content"` Likes int `json:"likes"` Status string `json:"status" form:"status"` }
func AllEntries ¶
func EntriesByCollection ¶
func EntriesByUser ¶
Click to show internal directories.
Click to hide internal directories.