函数定义#
Search#
详细描述#
Search(query string, options ...ostype.SearchOption) ([]*ostype.OmniSearchResult, error)
参数名 | 参数类型 | 参数解释 |
---|
query | string | |
options | ...ostype.SearchOption | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | []*ostype.OmniSearchResult | |
r2 | error | |
apikey#
详细描述#
apikey(keys ...string) ostype.SearchOption
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | ostype.SearchOption | |
baseurl#
详细描述#
baseurl(baseURL string) SearchOption
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | SearchOption | |
customSearcher#
详细描述#
customSearcher(name string, handle CustomSearcherHandle) ostype.SearchOption
参数名 | 参数类型 | 参数解释 |
---|
name | string | |
handle | CustomSearcherHandle | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | ostype.SearchOption | |
page#
详细描述#
page(page int) SearchOption
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | SearchOption | |
pagesize#
详细描述#
pagesize(pageSize int) SearchOption
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | SearchOption | |
proxy#
详细描述#
proxy(proxy string) SearchOption
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | SearchOption | |
timeout#
详细描述#
timeout(timeout time.Duration) SearchOption
参数名 | 参数类型 | 参数解释 |
---|
timeout | time.Duration | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | SearchOption | |
type#
详细描述#
type(name string) ostype.SearchOption
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | ostype.SearchOption | |