query

package
Version: v0.0.0-...-d4762d9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindContentUsingUrlResponse

type FindContentUsingUrlResponse struct {
	core.Response
	Data []dtcpv1.ContentGet `json:"data"`
}

func FindContentUsingUrlOrHash

func FindContentUsingUrlOrHash(urlParam, hashParam string) (*FindContentUsingUrlResponse, error)

type GetAllResponse

type GetAllResponse struct {
	core.Response
	Data *SearchResult `json:"data"`
}

func GetAll

func GetAll(page, page_size int, text, qtype, category string) (*GetAllResponse, error)

type Info

type Info struct {
	ID           uint   `json:"id"`
	CreatedAt    uint   `json:"created_at"`
	UserAddress  string `json:"user_address,omitempty"`
	Address      string `json:"address,omitempty"`
	Name         string `json:"name,omitempty"`
	Title        string `json:"title,omitempty"`
	Abstract     string `json:"abstract,omitempty"`
	Description  string `json:"description,omitempty"`
	License      string `json:"license,omitempty"`
	Extra        string `json:"extra,omitempty"`
	DNA          string `json:"dna,omitempty"`
	Status       string `json:"status,omitempty"`
	TxStatus     int    `json:"tx_status,omitempty"`
	MemberCount  uint   `json:"member_count,omitempty"`
	ArticleCount uint   `json:"article_count,omitempty"`
	LikeCount    uint   `json:"like_count,omitempty"`
	CommentCount uint   `json:"comment_count,omitempty"`
	ShareCount   uint   `json:"share_count,omitempty"`
	FilePath     string `json:"file_path,omitempty"`
}

type RawData

type RawData struct {
	DataType     string             `json:"DataType"`
	ID           uint               `json:"Id,omitempty"`
	CreatedAt    uint               `json:"CreatedAt,omitempty"`
	UserAddress  string             `json:"UserAddress,omitempty"`
	Address      string             `json:"Address,omitempty"`
	Name         string             `json:"Name,omitempty"`
	Title        string             `json:"Title,omitempty"`
	Abstract     string             `json:"Abstract,omitempty"`
	Description  string             `json:"Description,omitempty"`
	License      string             `json:"License,omitempty"`
	Extra        string             `json:"Extra,omitempty"`
	DNA          string             `json:"DNA,omitempty"`
	Status       string             `json:"Status,omitempty"`
	TxStatus     int                `json:"TxStatus,omitempty"`
	MemberCount  uint               `json:"MemberCount,omitempty"`
	ArticleCount uint               `json:"ArticleCount,omitempty"`
	LikeCount    uint               `json:"LikeCount,omitempty"`
	CommentCount uint               `json:"CommentCount,omitempty"`
	ShareCount   uint               `json:"ShareCount,omitempty"`
	FilePath     string             `json:"FilePath,omitempty"`
	Highlight    []string           `json:"Highlight,omitempty"`
	Group        []dtcpv1.GroupGet  `json:"Group,omitempty"`
	Article      *dtcpv1.ContentGet `json:"Article,omitempty"`
	SmallImage   []string           `json:"SmallImgs,omitempty"`
}

type SearchResult

type SearchResult struct {
	Total  int64 `json:"Total"`
	Offset int   `json:"Offset"`
	Data   []RawData
}

Jump to

Keyboard shortcuts

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