dispatch

package
v0.0.0-...-c6401c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEntryCount

func CheckEntryCount(id string, entryId string, target int) int

func DocumentsExtract

func DocumentsExtract(resp *http.Response) ([]string, *goquery.Document)

func Fetch

func Fetch(url string) *http.Response

func GetInitialData

func GetInitialData(id string) ([]string, int)

func GetLastPage

func GetLastPage(doc *goquery.Document) int

func PostParser

func PostParser(id string) []string

Types

type Meta

type Meta struct {
	ServiceId string `json:"serviceId"`
	BlogId    int    `json:"blogId"`
	EntryId   int    `json:"entryId"`
}

type ReactionCounter

type ReactionCounter struct {
	Sum  int `json:"sum"`
	Like int `json:"like"`
}

type Response

type Response struct {
	Success bool `json:"success"`
	Content struct {
		Id              string `json:"id"`
		Type            string `json:"type"`
		CategoryId      int    `json:"categoryId"`
		Meta            Meta
		ReactionCounter ReactionCounter
		CreatedDate     string `json:"createdDate"`
		UpdatedDate     string `json:"updatedDate"`
	}
}

func EntryFetch

func EntryFetch(id string, entryId string, target *Response) Response

type ResponseEntry

type ResponseEntry struct {
	ReactionCounter   ReactionCounter `json:"reactionCounter"`
	ReactionActivated string          `json:"reactionActivated"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL