Documentation
¶
Index ¶
- func AddPosts(posts *ShPosts)
- func AddPublishersIfNotExist(names *[]string) error
- func AddPublishersReplyPosts(posts *ShPubReplyPosts) error
- func Close()
- func DeletePublishers(names *[]string) error
- func GetCategoryPosts(category string, idx, n uint) ([]byte, error)
- func GetPosts(idx, n uint) ([]byte, error)
- func GetPostsWithIds(ids [][]byte) ([]byte, error)
- func GetPubPosts(publisher string, idx, n uint) ([]byte, error)
- func GetPublishers() (map[string]SyncData, error)
- func GetPublishersReplyPosts(name, k string) ([]byte, error)
- func Init()
- func Ui64tob(v uint64) []byte
- 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 GetPostsWithIds ¶
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.