Documentation ¶
Index ¶
- Constants
- Variables
- func GetCacheElement(uid uint64, client *redis.Redis) *pair.EleSaveReq
- func InitIndex(client *es.Client, index string, body string)
- func NewElasticsearch(conf *config.Config) *es.Client
- func NewMysql(c *config.Config) *gorm.DB
- type EsSearchPairResult
- type Highlight
- type Hit
- type Hits
- type Shards
- type Source
- type Total
Constants ¶
View Source
const ES_ACGER_PAIR = "acger_pair"
Variables ¶
View Source
var AcgerPairBody = `` /* 1320-byte string literal not displayed */
Functions ¶
func GetCacheElement ¶ added in v1.0.3
func GetCacheElement(uid uint64, client *redis.Redis) *pair.EleSaveReq
Types ¶
type EsSearchPairResult ¶ added in v1.0.3
Click to show internal directories.
Click to hide internal directories.