Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Conn *elastigo.Conn Conf ElasticConf }
elasticsearch client stuct
func (*Client) Execute ¶
func (c *Client) Execute(esdata Elasticsearch)
insert, update or delete index
type ElasticConf ¶
type ElasticConf struct { Server string Port string User string Pass string Index string Type string }
elasticsearch config struct
type Elasticsearch ¶
struct to store data before sent request to elasticserach
func Mapping ¶
func Mapping(oplog interface{}) (object Elasticsearch)
map a struct to the model defined in mapping.json
Click to show internal directories.
Click to hide internal directories.