Documentation ¶
Index ¶
- func AddPosts(posts *ShPosts) error
- func AddPublishersIfNotExist(names *[]string) error
- func AddPublishersReplyPosts(posts *ShPubReplyPosts) error
- func Close()
- func DeletePublishers(names *[]string) error
- func GetPosts(idx, n uint) ([]byte, error)
- func GetPublishers() (map[string]SyncData, error)
- func GetPublishersReplyPosts(name, k string) ([]byte, error)
- func Init()
- func UpdatePublishers(publishers *map[string]SyncData) error
- type ShPost
- type ShPosts
- type ShPubReplyPost
- type ShPubReplyPosts
- type SyncData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPublishersIfNotExist ¶
func AddPublishersReplyPosts ¶
func AddPublishersReplyPosts(posts *ShPubReplyPosts) error
todo: Check if reply post was reply to acgsh post in DB.
func DeletePublishers ¶
func GetPublishers ¶
func GetPublishersReplyPosts ¶
func UpdatePublishers ¶
Types ¶
type ShPost ¶
type ShPost struct { //SigUserpost string `json:"sig_userpost"` Msg string `json:"msg"` N string `json:"n"` K int64 `json:"k"` Lastk int64 `json:"lastk"` Time uint64 `json:"time"` Category string `json:"category"` Title string `json:"title"` Magnet string `json:"magnet"` Size uint64 `json:"size"` Team string `json:"team"` }
type ShPubReplyPost ¶
type ShPubReplyPosts ¶
type ShPubReplyPosts []ShPubReplyPost
Click to show internal directories.
Click to hide internal directories.