Versions in this module Expand all Collapse all v1 v1.0.6 Oct 31, 2016 v1.0.5 Sep 28, 2016 Changes in this version + const CodeInvalidSearchKeywords + const DOCUMENT_NETWORK + const DOCUMENT_NODE + const DOCUMENT_SERVICE + const DOCUMENT_STACK + const DOCUMENT_TASK + const DOCUMENT_VOLUME + const RESULT_LEN + const SEARCH_LOAD_DATA_INTERVAL + func Init() + type CraneIndexer struct + CraneDockerClient *dockerclient.CraneDockerClient + func NewCraneIndex(CraneDockerClient *dockerclient.CraneDockerClient) *CraneIndexer + func (indexer *CraneIndexer) Index(store *DocumentStorage) + type Document struct + GroupId uint64 + ID string + Name string + Param map[string]string + Type string + type DocumentStorage struct + Store map[string]Document + func NewDocumentStorage() *DocumentStorage + func (storage *DocumentStorage) Copy() *DocumentStorage + func (storage *DocumentStorage) Empty() + func (storage *DocumentStorage) Get(key string) *Document + func (storage *DocumentStorage) Indices() []string + func (storage *DocumentStorage) Set(key string, doc Document) + type Indexer interface + Index func(prefetchStore *DocumentStorage) + type SearchApi struct + Index []string + Indexer Indexer + PrefetchStore *DocumentStorage + Store *DocumentStorage + func (searchApi *SearchApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc) + func (searchApi *SearchApi) IndexData() + func (searchApi *SearchApi) Search(ctx *gin.Context)