Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. type Entry struct {
  2. Title string `json:"title"`
  3. Description string `json:"desc"`
  4. URL string `json:"url"`
  5. Updated int64 `json:"updated"`
  6. }
  7.  
  8. type RPCRequest struct {
  9. Parser string `json:"parser"`
  10. RequestType string `json:"parsertype"`
  11. Request string `json:"request"`
  12. LastDelta int `json:"lastdelta"`
  13. LastUpdate int64 `json:"lastupdate"`
  14. ReplyChannel chan RPCResponse
  15. }
  16.  
  17.  
  18. type RPCResponse struct {
  19. Success bool `json:"updated"`
  20. Message string `json:"message"`
  21. Entries []Entry `json:"entries"`
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement