Documentation
¶
Overview ¶
description: sync_eth
@author: xwc1125 @date: 2020/10/05
description: sync_eth
@author: xwc1125 @date: 2020/10/05
description: sync_eth
@author: xwc1125 @date: 2020/10/05
description: sync_eth
@author: xwc1125 @date: 2020/10/05
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Camel2Case ¶
Types ¶
type ES ¶
type ES struct {
// contains filtered or unexported fields
}
func (*ES) BulkIndexRequest ¶
func (es *ES) BulkIndexRequest(index string) *elastic.BulkIndexRequest
type EsMappings ¶
type EsMappings struct {
Settings *Settings `json:"settings,omitempty"`
Mappings *Mappings `json:"mappings,omitempty"`
}
func (EsMappings) String ¶
func (e EsMappings) String() string
type Tweet ¶
type Tweet struct {
User string `json:"user" es:"text"`
Message string `json:"message" es:"text"`
Retweets int `json:"retweets" es:"text"`
Image string `json:"image,omitempty" es:"text"`
Created time.Time `json:"created,omitempty" es:"store"`
Tags []string `json:"tags,omitempty" es:"text"`
Location string `json:"location,omitempty"`
Suggest *elastic.SuggestField `json:"suggest_field,omitempty" es:"text"`
A float32
}
Click to show internal directories.
Click to hide internal directories.