jarviscrawlercore

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParagraphType_name = map[int32]string{
	0: "PT_NULL",
	1: "PT_TEXT",
	2: "PT_IMAGE",
	3: "PT_HEADLINE",
	4: "PT_POSTLIST",
	5: "PT_COMMENT",
}
View Source
var ParagraphType_value = map[string]int32{
	"PT_NULL":     0,
	"PT_TEXT":     1,
	"PT_IMAGE":    2,
	"PT_HEADLINE": 3,
	"PT_POSTLIST": 4,
	"PT_COMMENT":  5,
}

Functions

func RegisterJarvisCrawlerServiceServer

func RegisterJarvisCrawlerServiceServer(s *grpc.Server, srv JarvisCrawlerServiceServer)

Types

type Article

type Article struct {
	Title                string     `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Author               string     `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	WriteTime            string     `protobuf:"bytes,3,opt,name=writeTime,proto3" json:"writeTime,omitempty"`
	Summary              string     `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"`
	Url                  string     `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	Image                *ImageInfo `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
	SecondTitle          string     `protobuf:"bytes,7,opt,name=secondTitle,proto3" json:"secondTitle,omitempty"`
	Premium              bool       `protobuf:"varint,8,opt,name=premium,proto3" json:"premium,omitempty"`
	Lang                 string     `protobuf:"bytes,9,opt,name=lang,proto3" json:"lang,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Article - article

func (*Article) Descriptor

func (*Article) Descriptor() ([]byte, []int)

func (*Article) GetAuthor

func (m *Article) GetAuthor() string

func (*Article) GetImage

func (m *Article) GetImage() *ImageInfo

func (*Article) GetLang

func (m *Article) GetLang() string

func (*Article) GetPremium

func (m *Article) GetPremium() bool

func (*Article) GetSecondTitle

func (m *Article) GetSecondTitle() string

func (*Article) GetSummary

func (m *Article) GetSummary() string

func (*Article) GetTitle

func (m *Article) GetTitle() string

func (*Article) GetUrl

func (m *Article) GetUrl() string

func (*Article) GetWriteTime

func (m *Article) GetWriteTime() string

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) Reset

func (m *Article) Reset()

func (*Article) String

func (m *Article) String() string

func (*Article) XXX_DiscardUnknown

func (m *Article) XXX_DiscardUnknown()

func (*Article) XXX_Marshal

func (m *Article) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Article) XXX_Merge

func (dst *Article) XXX_Merge(src proto.Message)

func (*Article) XXX_Size

func (m *Article) XXX_Size() int

func (*Article) XXX_Unmarshal

func (m *Article) XXX_Unmarshal(b []byte) error

type ArticleList

type ArticleList struct {
	Articles             []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

ArticleList - article list

func (*ArticleList) Descriptor

func (*ArticleList) Descriptor() ([]byte, []int)

func (*ArticleList) GetArticles

func (m *ArticleList) GetArticles() []*Article

func (*ArticleList) ProtoMessage

func (*ArticleList) ProtoMessage()

func (*ArticleList) Reset

func (m *ArticleList) Reset()

func (*ArticleList) String

func (m *ArticleList) String() string

func (*ArticleList) XXX_DiscardUnknown

func (m *ArticleList) XXX_DiscardUnknown()

func (*ArticleList) XXX_Marshal

func (m *ArticleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArticleList) XXX_Merge

func (dst *ArticleList) XXX_Merge(src proto.Message)

func (*ArticleList) XXX_Size

func (m *ArticleList) XXX_Size() int

func (*ArticleList) XXX_Unmarshal

func (m *ArticleList) XXX_Unmarshal(b []byte) error

type ConfluenceAllUpdates

type ConfluenceAllUpdates struct {
	Updates              []*ConfluenceUpdateGrouping `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

ConfluenceAllUpdates - confluence all updates

func (*ConfluenceAllUpdates) Descriptor

func (*ConfluenceAllUpdates) Descriptor() ([]byte, []int)

func (*ConfluenceAllUpdates) GetUpdates

func (*ConfluenceAllUpdates) ProtoMessage

func (*ConfluenceAllUpdates) ProtoMessage()

func (*ConfluenceAllUpdates) Reset

func (m *ConfluenceAllUpdates) Reset()

func (*ConfluenceAllUpdates) String

func (m *ConfluenceAllUpdates) String() string

func (*ConfluenceAllUpdates) XXX_DiscardUnknown

func (m *ConfluenceAllUpdates) XXX_DiscardUnknown()

func (*ConfluenceAllUpdates) XXX_Marshal

func (m *ConfluenceAllUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfluenceAllUpdates) XXX_Merge

func (dst *ConfluenceAllUpdates) XXX_Merge(src proto.Message)

func (*ConfluenceAllUpdates) XXX_Size

func (m *ConfluenceAllUpdates) XXX_Size() int

func (*ConfluenceAllUpdates) XXX_Unmarshal

func (m *ConfluenceAllUpdates) XXX_Unmarshal(b []byte) error

type ConfluenceUpdateGrouping

type ConfluenceUpdateGrouping struct {
	Author               string                  `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
	Items                []*ConfluenceUpdateItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

ConfluenceUpdateGrouping - confluence all updates - grouping

func (*ConfluenceUpdateGrouping) Descriptor

func (*ConfluenceUpdateGrouping) Descriptor() ([]byte, []int)

func (*ConfluenceUpdateGrouping) GetAuthor

func (m *ConfluenceUpdateGrouping) GetAuthor() string

func (*ConfluenceUpdateGrouping) GetItems

func (*ConfluenceUpdateGrouping) ProtoMessage

func (*ConfluenceUpdateGrouping) ProtoMessage()

func (*ConfluenceUpdateGrouping) Reset

func (m *ConfluenceUpdateGrouping) Reset()

func (*ConfluenceUpdateGrouping) String

func (m *ConfluenceUpdateGrouping) String() string

func (*ConfluenceUpdateGrouping) XXX_DiscardUnknown

func (m *ConfluenceUpdateGrouping) XXX_DiscardUnknown()

func (*ConfluenceUpdateGrouping) XXX_Marshal

func (m *ConfluenceUpdateGrouping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfluenceUpdateGrouping) XXX_Merge

func (dst *ConfluenceUpdateGrouping) XXX_Merge(src proto.Message)

func (*ConfluenceUpdateGrouping) XXX_Size

func (m *ConfluenceUpdateGrouping) XXX_Size() int

func (*ConfluenceUpdateGrouping) XXX_Unmarshal

func (m *ConfluenceUpdateGrouping) XXX_Unmarshal(b []byte) error

type ConfluenceUpdateItem

type ConfluenceUpdateItem struct {
	Title                string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Summary              string   `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ConfluenceUpdateItem - confluence all updates - item

func (*ConfluenceUpdateItem) Descriptor

func (*ConfluenceUpdateItem) Descriptor() ([]byte, []int)

func (*ConfluenceUpdateItem) GetSummary

func (m *ConfluenceUpdateItem) GetSummary() string

func (*ConfluenceUpdateItem) GetTitle

func (m *ConfluenceUpdateItem) GetTitle() string

func (*ConfluenceUpdateItem) GetUrl

func (m *ConfluenceUpdateItem) GetUrl() string

func (*ConfluenceUpdateItem) ProtoMessage

func (*ConfluenceUpdateItem) ProtoMessage()

func (*ConfluenceUpdateItem) Reset

func (m *ConfluenceUpdateItem) Reset()

func (*ConfluenceUpdateItem) String

func (m *ConfluenceUpdateItem) String() string

func (*ConfluenceUpdateItem) XXX_DiscardUnknown

func (m *ConfluenceUpdateItem) XXX_DiscardUnknown()

func (*ConfluenceUpdateItem) XXX_Marshal

func (m *ConfluenceUpdateItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfluenceUpdateItem) XXX_Merge

func (dst *ConfluenceUpdateItem) XXX_Merge(src proto.Message)

func (*ConfluenceUpdateItem) XXX_Size

func (m *ConfluenceUpdateItem) XXX_Size() int

func (*ConfluenceUpdateItem) XXX_Unmarshal

func (m *ConfluenceUpdateItem) XXX_Unmarshal(b []byte) error

type DTBusinessGameReport

type DTBusinessGameReport struct {
	// businessid
	Businessid string `protobuf:"bytes,1,opt,name=businessid,proto3" json:"businessid,omitempty"`
	// gamecode
	Gamecode string `protobuf:"bytes,2,opt,name=gamecode,proto3" json:"gamecode,omitempty"`
	// totalWin
	TotalWin float32 `protobuf:"fixed32,3,opt,name=totalWin,proto3" json:"totalWin,omitempty"`
	// totalBet
	TotalBet float32 `protobuf:"fixed32,4,opt,name=totalBet,proto3" json:"totalBet,omitempty"`
	// gameNums
	GameNums int32 `protobuf:"varint,5,opt,name=gameNums,proto3" json:"gameNums,omitempty"`
	// currency
	Currency             string   `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DTBusinessGameReport -

func (*DTBusinessGameReport) Descriptor

func (*DTBusinessGameReport) Descriptor() ([]byte, []int)

func (*DTBusinessGameReport) GetBusinessid

func (m *DTBusinessGameReport) GetBusinessid() string

func (*DTBusinessGameReport) GetCurrency

func (m *DTBusinessGameReport) GetCurrency() string

func (*DTBusinessGameReport) GetGameNums

func (m *DTBusinessGameReport) GetGameNums() int32

func (*DTBusinessGameReport) GetGamecode

func (m *DTBusinessGameReport) GetGamecode() string

func (*DTBusinessGameReport) GetTotalBet

func (m *DTBusinessGameReport) GetTotalBet() float32

func (*DTBusinessGameReport) GetTotalWin

func (m *DTBusinessGameReport) GetTotalWin() float32

func (*DTBusinessGameReport) ProtoMessage

func (*DTBusinessGameReport) ProtoMessage()

func (*DTBusinessGameReport) Reset

func (m *DTBusinessGameReport) Reset()

func (*DTBusinessGameReport) String

func (m *DTBusinessGameReport) String() string

func (*DTBusinessGameReport) XXX_DiscardUnknown

func (m *DTBusinessGameReport) XXX_DiscardUnknown()

func (*DTBusinessGameReport) XXX_Marshal

func (m *DTBusinessGameReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DTBusinessGameReport) XXX_Merge

func (dst *DTBusinessGameReport) XXX_Merge(src proto.Message)

func (*DTBusinessGameReport) XXX_Size

func (m *DTBusinessGameReport) XXX_Size() int

func (*DTBusinessGameReport) XXX_Unmarshal

func (m *DTBusinessGameReport) XXX_Unmarshal(b []byte) error

type DTTodayGameData

type DTTodayGameData struct {
	// totalWin
	TotalWin float32 `protobuf:"fixed32,1,opt,name=totalWin,proto3" json:"totalWin,omitempty"`
	// totalBet
	TotalBet float32 `protobuf:"fixed32,2,opt,name=totalBet,proto3" json:"totalBet,omitempty"`
	// gameNums
	GameNums             int32    `protobuf:"varint,3,opt,name=gameNums,proto3" json:"gameNums,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DTTodayGameData -

func (*DTTodayGameData) Descriptor

func (*DTTodayGameData) Descriptor() ([]byte, []int)

func (*DTTodayGameData) GetGameNums

func (m *DTTodayGameData) GetGameNums() int32

func (*DTTodayGameData) GetTotalBet

func (m *DTTodayGameData) GetTotalBet() float32

func (*DTTodayGameData) GetTotalWin

func (m *DTTodayGameData) GetTotalWin() float32

func (*DTTodayGameData) ProtoMessage

func (*DTTodayGameData) ProtoMessage()

func (*DTTodayGameData) Reset

func (m *DTTodayGameData) Reset()

func (*DTTodayGameData) String

func (m *DTTodayGameData) String() string

func (*DTTodayGameData) XXX_DiscardUnknown

func (m *DTTodayGameData) XXX_DiscardUnknown()

func (*DTTodayGameData) XXX_Marshal

func (m *DTTodayGameData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DTTodayGameData) XXX_Merge

func (dst *DTTodayGameData) XXX_Merge(src proto.Message)

func (*DTTodayGameData) XXX_Size

func (m *DTTodayGameData) XXX_Size() int

func (*DTTodayGameData) XXX_Unmarshal

func (m *DTTodayGameData) XXX_Unmarshal(b []byte) error

type ExportArticleResult

type ExportArticleResult struct {
	Title                string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Author               string       `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	WriteTime            string       `protobuf:"bytes,3,opt,name=writeTime,proto3" json:"writeTime,omitempty"`
	Article              string       `protobuf:"bytes,4,opt,name=article,proto3" json:"article,omitempty"`
	Url                  string       `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	Imgs                 []*ImageInfo `protobuf:"bytes,6,rep,name=imgs,proto3" json:"imgs,omitempty"`
	TitleImage           *ImageInfo   `protobuf:"bytes,7,opt,name=titleImage,proto3" json:"titleImage,omitempty"`
	Tags                 []string     `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
	Paragraphs           []*Paragraph `protobuf:"bytes,9,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
	Summary              string       `protobuf:"bytes,10,opt,name=summary,proto3" json:"summary,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

ExportArticleResult - export article result

func (*ExportArticleResult) Descriptor

func (*ExportArticleResult) Descriptor() ([]byte, []int)

func (*ExportArticleResult) GetArticle

func (m *ExportArticleResult) GetArticle() string

func (*ExportArticleResult) GetAuthor

func (m *ExportArticleResult) GetAuthor() string

func (*ExportArticleResult) GetImgs

func (m *ExportArticleResult) GetImgs() []*ImageInfo

func (*ExportArticleResult) GetParagraphs

func (m *ExportArticleResult) GetParagraphs() []*Paragraph

func (*ExportArticleResult) GetSummary

func (m *ExportArticleResult) GetSummary() string

func (*ExportArticleResult) GetTags

func (m *ExportArticleResult) GetTags() []string

func (*ExportArticleResult) GetTitle

func (m *ExportArticleResult) GetTitle() string

func (*ExportArticleResult) GetTitleImage

func (m *ExportArticleResult) GetTitleImage() *ImageInfo

func (*ExportArticleResult) GetUrl

func (m *ExportArticleResult) GetUrl() string

func (*ExportArticleResult) GetWriteTime

func (m *ExportArticleResult) GetWriteTime() string

func (*ExportArticleResult) ProtoMessage

func (*ExportArticleResult) ProtoMessage()

func (*ExportArticleResult) Reset

func (m *ExportArticleResult) Reset()

func (*ExportArticleResult) String

func (m *ExportArticleResult) String() string

func (*ExportArticleResult) XXX_DiscardUnknown

func (m *ExportArticleResult) XXX_DiscardUnknown()

func (*ExportArticleResult) XXX_Marshal

func (m *ExportArticleResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportArticleResult) XXX_Merge

func (dst *ExportArticleResult) XXX_Merge(src proto.Message)

func (*ExportArticleResult) XXX_Size

func (m *ExportArticleResult) XXX_Size() int

func (*ExportArticleResult) XXX_Unmarshal

func (m *ExportArticleResult) XXX_Unmarshal(b []byte) error

type ImageInfo

type ImageInfo struct {
	HashName             string   `protobuf:"bytes,1,opt,name=hashName,proto3" json:"hashName,omitempty"`
	Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Width                int32    `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Height               int32    `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Data                 []byte   `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ImageInfo - image info

func (*ImageInfo) Descriptor

func (*ImageInfo) Descriptor() ([]byte, []int)

func (*ImageInfo) GetData

func (m *ImageInfo) GetData() []byte

func (*ImageInfo) GetHashName

func (m *ImageInfo) GetHashName() string

func (*ImageInfo) GetHeight

func (m *ImageInfo) GetHeight() int32

func (*ImageInfo) GetUrl

func (m *ImageInfo) GetUrl() string

func (*ImageInfo) GetWidth

func (m *ImageInfo) GetWidth() int32

func (*ImageInfo) ProtoMessage

func (*ImageInfo) ProtoMessage()

func (*ImageInfo) Reset

func (m *ImageInfo) Reset()

func (*ImageInfo) String

func (m *ImageInfo) String() string

func (*ImageInfo) XXX_DiscardUnknown

func (m *ImageInfo) XXX_DiscardUnknown()

func (*ImageInfo) XXX_Marshal

func (m *ImageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageInfo) XXX_Merge

func (dst *ImageInfo) XXX_Merge(src proto.Message)

func (*ImageInfo) XXX_Size

func (m *ImageInfo) XXX_Size() int

func (*ImageInfo) XXX_Unmarshal

func (m *ImageInfo) XXX_Unmarshal(b []byte) error

type JarvisCrawlerServiceClient

type JarvisCrawlerServiceClient interface {
	// translate - translate text
	Translate(ctx context.Context, in *RequestTranslate, opts ...grpc.CallOption) (*ReplyTranslate, error)
	// exportArticle - export article
	ExportArticle(ctx context.Context, in *RequestArticle, opts ...grpc.CallOption) (JarvisCrawlerService_ExportArticleClient, error)
	// getArticles - get articles
	GetArticles(ctx context.Context, in *RequestArticles, opts ...grpc.CallOption) (*ReplyArticles, error)
	// getDTData - get DT data
	GetDTData(ctx context.Context, in *RequestDTData, opts ...grpc.CallOption) (*ReplyDTData, error)
}

JarvisCrawlerServiceClient is the client API for JarvisCrawlerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewJarvisCrawlerServiceClient

func NewJarvisCrawlerServiceClient(cc *grpc.ClientConn) JarvisCrawlerServiceClient

type JarvisCrawlerServiceServer

type JarvisCrawlerServiceServer interface {
	// translate - translate text
	Translate(context.Context, *RequestTranslate) (*ReplyTranslate, error)
	// exportArticle - export article
	ExportArticle(*RequestArticle, JarvisCrawlerService_ExportArticleServer) error
	// getArticles - get articles
	GetArticles(context.Context, *RequestArticles) (*ReplyArticles, error)
	// getDTData - get DT data
	GetDTData(context.Context, *RequestDTData) (*ReplyDTData, error)
}

JarvisCrawlerServiceServer is the server API for JarvisCrawlerService service.

type JarvisCrawlerService_ExportArticleClient

type JarvisCrawlerService_ExportArticleClient interface {
	Recv() (*ReplyArticle, error)
	grpc.ClientStream
}

type JarvisCrawlerService_ExportArticleServer

type JarvisCrawlerService_ExportArticleServer interface {
	Send(*ReplyArticle) error
	grpc.ServerStream
}

type Paragraph

type Paragraph struct {
	Pt                   ParagraphType `protobuf:"varint,1,opt,name=pt,proto3,enum=jarviscrawlercore.ParagraphType" json:"pt,omitempty"`
	ImgHashName          string        `protobuf:"bytes,2,opt,name=imgHashName,proto3" json:"imgHashName,omitempty"`
	Text                 string        `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	ImgURL               string        `protobuf:"bytes,4,opt,name=imgURL,proto3" json:"imgURL,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Paragraph - paragraph

func (*Paragraph) Descriptor

func (*Paragraph) Descriptor() ([]byte, []int)

func (*Paragraph) GetImgHashName

func (m *Paragraph) GetImgHashName() string

func (*Paragraph) GetImgURL

func (m *Paragraph) GetImgURL() string

func (*Paragraph) GetPt

func (m *Paragraph) GetPt() ParagraphType

func (*Paragraph) GetText

func (m *Paragraph) GetText() string

func (*Paragraph) ProtoMessage

func (*Paragraph) ProtoMessage()

func (*Paragraph) Reset

func (m *Paragraph) Reset()

func (*Paragraph) String

func (m *Paragraph) String() string

func (*Paragraph) XXX_DiscardUnknown

func (m *Paragraph) XXX_DiscardUnknown()

func (*Paragraph) XXX_Marshal

func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Paragraph) XXX_Merge

func (dst *Paragraph) XXX_Merge(src proto.Message)

func (*Paragraph) XXX_Size

func (m *Paragraph) XXX_Size() int

func (*Paragraph) XXX_Unmarshal

func (m *Paragraph) XXX_Unmarshal(b []byte) error

type ParagraphType

type ParagraphType int32

ParagraphType - paragraph type

const (
	ParagraphType_PT_NULL     ParagraphType = 0
	ParagraphType_PT_TEXT     ParagraphType = 1
	ParagraphType_PT_IMAGE    ParagraphType = 2
	ParagraphType_PT_HEADLINE ParagraphType = 3
	ParagraphType_PT_POSTLIST ParagraphType = 4
	ParagraphType_PT_COMMENT  ParagraphType = 5
)

func (ParagraphType) EnumDescriptor

func (ParagraphType) EnumDescriptor() ([]byte, []int)

func (ParagraphType) String

func (x ParagraphType) String() string

type ReplyArticle

type ReplyArticle struct {
	// result
	Result *ExportArticleResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// totalLength - If the message is too long, it will send data in multiple msg, this is the total length.
	TotalLength int32 `protobuf:"varint,2,opt,name=totalLength,proto3" json:"totalLength,omitempty"`
	// curStart - The starting point of the current data (in bytes).
	CurStart int32 `protobuf:"varint,3,opt,name=curStart,proto3" json:"curStart,omitempty"`
	// curLength - The length of the current data (in bytes).
	CurLength int32 `protobuf:"varint,4,opt,name=curLength,proto3" json:"curLength,omitempty"`
	// hashData - This is the hash of each paragraph.
	HashData string `protobuf:"bytes,5,opt,name=hashData,proto3" json:"hashData,omitempty"`
	// totalHashData - If multiple messages return data, this is the hash value of all data, only sent in the last message.
	TotalHashData string `protobuf:"bytes,6,opt,name=totalHashData,proto3" json:"totalHashData,omitempty"`
	// data
	Data                 []byte   `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ReplyArticle - reply article

func (*ReplyArticle) Descriptor

func (*ReplyArticle) Descriptor() ([]byte, []int)

func (*ReplyArticle) GetCurLength

func (m *ReplyArticle) GetCurLength() int32

func (*ReplyArticle) GetCurStart

func (m *ReplyArticle) GetCurStart() int32

func (*ReplyArticle) GetData

func (m *ReplyArticle) GetData() []byte

func (*ReplyArticle) GetHashData

func (m *ReplyArticle) GetHashData() string

func (*ReplyArticle) GetResult

func (m *ReplyArticle) GetResult() *ExportArticleResult

func (*ReplyArticle) GetTotalHashData

func (m *ReplyArticle) GetTotalHashData() string

func (*ReplyArticle) GetTotalLength

func (m *ReplyArticle) GetTotalLength() int32

func (*ReplyArticle) ProtoMessage

func (*ReplyArticle) ProtoMessage()

func (*ReplyArticle) Reset

func (m *ReplyArticle) Reset()

func (*ReplyArticle) String

func (m *ReplyArticle) String() string

func (*ReplyArticle) XXX_DiscardUnknown

func (m *ReplyArticle) XXX_DiscardUnknown()

func (*ReplyArticle) XXX_Marshal

func (m *ReplyArticle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyArticle) XXX_Merge

func (dst *ReplyArticle) XXX_Merge(src proto.Message)

func (*ReplyArticle) XXX_Size

func (m *ReplyArticle) XXX_Size() int

func (*ReplyArticle) XXX_Unmarshal

func (m *ReplyArticle) XXX_Unmarshal(b []byte) error

type ReplyArticles

type ReplyArticles struct {
	// articles
	Articles             *ArticleList `protobuf:"bytes,1,opt,name=articles,proto3" json:"articles,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

ReplyArticles - reply articles

func (*ReplyArticles) Descriptor

func (*ReplyArticles) Descriptor() ([]byte, []int)

func (*ReplyArticles) GetArticles

func (m *ReplyArticles) GetArticles() *ArticleList

func (*ReplyArticles) ProtoMessage

func (*ReplyArticles) ProtoMessage()

func (*ReplyArticles) Reset

func (m *ReplyArticles) Reset()

func (*ReplyArticles) String

func (m *ReplyArticles) String() string

func (*ReplyArticles) XXX_DiscardUnknown

func (m *ReplyArticles) XXX_DiscardUnknown()

func (*ReplyArticles) XXX_Marshal

func (m *ReplyArticles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyArticles) XXX_Merge

func (dst *ReplyArticles) XXX_Merge(src proto.Message)

func (*ReplyArticles) XXX_Size

func (m *ReplyArticles) XXX_Size() int

func (*ReplyArticles) XXX_Unmarshal

func (m *ReplyArticles) XXX_Unmarshal(b []byte) error

type ReplyDTData

type ReplyDTData struct {
	// gameReport
	GameReports []*DTBusinessGameReport `protobuf:"bytes,1,rep,name=gameReports,proto3" json:"gameReports,omitempty"`
	// todayGameData
	TodayGameData        *DTTodayGameData `protobuf:"bytes,2,opt,name=todayGameData,proto3" json:"todayGameData,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

ReplyDTData - reply DT Data

func (*ReplyDTData) Descriptor

func (*ReplyDTData) Descriptor() ([]byte, []int)

func (*ReplyDTData) GetGameReports

func (m *ReplyDTData) GetGameReports() []*DTBusinessGameReport

func (*ReplyDTData) GetTodayGameData

func (m *ReplyDTData) GetTodayGameData() *DTTodayGameData

func (*ReplyDTData) ProtoMessage

func (*ReplyDTData) ProtoMessage()

func (*ReplyDTData) Reset

func (m *ReplyDTData) Reset()

func (*ReplyDTData) String

func (m *ReplyDTData) String() string

func (*ReplyDTData) XXX_DiscardUnknown

func (m *ReplyDTData) XXX_DiscardUnknown()

func (*ReplyDTData) XXX_Marshal

func (m *ReplyDTData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyDTData) XXX_Merge

func (dst *ReplyDTData) XXX_Merge(src proto.Message)

func (*ReplyDTData) XXX_Size

func (m *ReplyDTData) XXX_Size() int

func (*ReplyDTData) XXX_Unmarshal

func (m *ReplyDTData) XXX_Unmarshal(b []byte) error

type ReplyTranslate

type ReplyTranslate struct {
	// text - destination text
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ReplyTranslate - reply translate

func (*ReplyTranslate) Descriptor

func (*ReplyTranslate) Descriptor() ([]byte, []int)

func (*ReplyTranslate) GetText

func (m *ReplyTranslate) GetText() string

func (*ReplyTranslate) ProtoMessage

func (*ReplyTranslate) ProtoMessage()

func (*ReplyTranslate) Reset

func (m *ReplyTranslate) Reset()

func (*ReplyTranslate) String

func (m *ReplyTranslate) String() string

func (*ReplyTranslate) XXX_DiscardUnknown

func (m *ReplyTranslate) XXX_DiscardUnknown()

func (*ReplyTranslate) XXX_Marshal

func (m *ReplyTranslate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyTranslate) XXX_Merge

func (dst *ReplyTranslate) XXX_Merge(src proto.Message)

func (*ReplyTranslate) XXX_Size

func (m *ReplyTranslate) XXX_Size() int

func (*ReplyTranslate) XXX_Unmarshal

func (m *ReplyTranslate) XXX_Unmarshal(b []byte) error

type RequestArticle

type RequestArticle struct {
	// url
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// is need attach jquery
	AttachJQuery         bool     `protobuf:"varint,2,opt,name=attachJQuery,proto3" json:"attachJQuery,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RequestArticle - request article

func (*RequestArticle) Descriptor

func (*RequestArticle) Descriptor() ([]byte, []int)

func (*RequestArticle) GetAttachJQuery

func (m *RequestArticle) GetAttachJQuery() bool

func (*RequestArticle) GetUrl

func (m *RequestArticle) GetUrl() string

func (*RequestArticle) ProtoMessage

func (*RequestArticle) ProtoMessage()

func (*RequestArticle) Reset

func (m *RequestArticle) Reset()

func (*RequestArticle) String

func (m *RequestArticle) String() string

func (*RequestArticle) XXX_DiscardUnknown

func (m *RequestArticle) XXX_DiscardUnknown()

func (*RequestArticle) XXX_Marshal

func (m *RequestArticle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestArticle) XXX_Merge

func (dst *RequestArticle) XXX_Merge(src proto.Message)

func (*RequestArticle) XXX_Size

func (m *RequestArticle) XXX_Size() int

func (*RequestArticle) XXX_Unmarshal

func (m *RequestArticle) XXX_Unmarshal(b []byte) error

type RequestArticles

type RequestArticles struct {
	// url
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Deprecated: Do not use.
	// is need attach jquery
	AttachJQuery bool `protobuf:"varint,2,opt,name=attachJQuery,proto3" json:"attachJQuery,omitempty"` // Deprecated: Do not use.
	// website
	Website              string   `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RequestArticles - request articles

func (*RequestArticles) Descriptor

func (*RequestArticles) Descriptor() ([]byte, []int)

func (*RequestArticles) GetAttachJQuery deprecated

func (m *RequestArticles) GetAttachJQuery() bool

Deprecated: Do not use.

func (*RequestArticles) GetUrl deprecated

func (m *RequestArticles) GetUrl() string

Deprecated: Do not use.

func (*RequestArticles) GetWebsite

func (m *RequestArticles) GetWebsite() string

func (*RequestArticles) ProtoMessage

func (*RequestArticles) ProtoMessage()

func (*RequestArticles) Reset

func (m *RequestArticles) Reset()

func (*RequestArticles) String

func (m *RequestArticles) String() string

func (*RequestArticles) XXX_DiscardUnknown

func (m *RequestArticles) XXX_DiscardUnknown()

func (*RequestArticles) XXX_Marshal

func (m *RequestArticles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestArticles) XXX_Merge

func (dst *RequestArticles) XXX_Merge(src proto.Message)

func (*RequestArticles) XXX_Size

func (m *RequestArticles) XXX_Size() int

func (*RequestArticles) XXX_Unmarshal

func (m *RequestArticles) XXX_Unmarshal(b []byte) error

type RequestDTData

type RequestDTData struct {
	// mode
	Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
	// startTime
	StartTime string `protobuf:"bytes,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// endTime
	EndTime              string   `protobuf:"bytes,3,opt,name=endTime,proto3" json:"endTime,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RequestDTData - request DT Data

func (*RequestDTData) Descriptor

func (*RequestDTData) Descriptor() ([]byte, []int)

func (*RequestDTData) GetEndTime

func (m *RequestDTData) GetEndTime() string

func (*RequestDTData) GetMode

func (m *RequestDTData) GetMode() string

func (*RequestDTData) GetStartTime

func (m *RequestDTData) GetStartTime() string

func (*RequestDTData) ProtoMessage

func (*RequestDTData) ProtoMessage()

func (*RequestDTData) Reset

func (m *RequestDTData) Reset()

func (*RequestDTData) String

func (m *RequestDTData) String() string

func (*RequestDTData) XXX_DiscardUnknown

func (m *RequestDTData) XXX_DiscardUnknown()

func (*RequestDTData) XXX_Marshal

func (m *RequestDTData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestDTData) XXX_Merge

func (dst *RequestDTData) XXX_Merge(src proto.Message)

func (*RequestDTData) XXX_Size

func (m *RequestDTData) XXX_Size() int

func (*RequestDTData) XXX_Unmarshal

func (m *RequestDTData) XXX_Unmarshal(b []byte) error

type RequestTranslate

type RequestTranslate struct {
	// text - source text
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// platform - it's like google
	Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	// srcLang - source language
	SrcLang string `protobuf:"bytes,3,opt,name=srcLang,proto3" json:"srcLang,omitempty"`
	// destLang - destination language
	DestLang             string   `protobuf:"bytes,4,opt,name=destLang,proto3" json:"destLang,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RequestTranslate - request translate

func (*RequestTranslate) Descriptor

func (*RequestTranslate) Descriptor() ([]byte, []int)

func (*RequestTranslate) GetDestLang

func (m *RequestTranslate) GetDestLang() string

func (*RequestTranslate) GetPlatform

func (m *RequestTranslate) GetPlatform() string

func (*RequestTranslate) GetSrcLang

func (m *RequestTranslate) GetSrcLang() string

func (*RequestTranslate) GetText

func (m *RequestTranslate) GetText() string

func (*RequestTranslate) ProtoMessage

func (*RequestTranslate) ProtoMessage()

func (*RequestTranslate) Reset

func (m *RequestTranslate) Reset()

func (*RequestTranslate) String

func (m *RequestTranslate) String() string

func (*RequestTranslate) XXX_DiscardUnknown

func (m *RequestTranslate) XXX_DiscardUnknown()

func (*RequestTranslate) XXX_Marshal

func (m *RequestTranslate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestTranslate) XXX_Merge

func (dst *RequestTranslate) XXX_Merge(src proto.Message)

func (*RequestTranslate) XXX_Size

func (m *RequestTranslate) XXX_Size() int

func (*RequestTranslate) XXX_Unmarshal

func (m *RequestTranslate) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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