Documentation ¶
Overview ¶
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexByName ¶
func RegisterIndexName ¶
Types ¶
type DebugDocumentHandler ¶
type DebugDocumentHandler struct {
// contains filtered or unexported fields
}
DebugDocumentHandler allows you to debug the index content for a given document id. the document ID should be mapped to the mux router URL with name "docId"
func NewDebugDocumentHandler ¶
func NewDebugDocumentHandler(defaultIndexName string) *DebugDocumentHandler
func (*DebugDocumentHandler) ServeHTTP ¶
func (h *DebugDocumentHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type ListFieldsHandler ¶
type ListFieldsHandler struct {
// contains filtered or unexported fields
}
func NewListFieldsHandler ¶
func NewListFieldsHandler(defaultIndexName string) *ListFieldsHandler
func (*ListFieldsHandler) ServeHTTP ¶
func (h *ListFieldsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type SearchHandler ¶
type SearchHandler struct {
// contains filtered or unexported fields
}
SearchHandler can handle search requests sent over HTTP the index name can be selected in the URL by mapping a gorilla mux var, or it can be set manually with by setting the defaultIndex value
func NewSearchHandler ¶
func NewSearchHandler(defaultIndexName string) *SearchHandler
func (*SearchHandler) ServeHTTP ¶
func (h *SearchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)