registry

package
v0.0.0-...-27f001b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

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.

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 PrintRegistry

func PrintRegistry()

func RegisterAnalyzer

func RegisterAnalyzer(name string, constructor AnalyzerConstructor)

func RegisterCharFilter

func RegisterCharFilter(name string, constructor CharFilterConstructor)

func RegisterDateTimeParser

func RegisterDateTimeParser(name string, constructor DateTimeParserConstructor)

func RegisterKVStore

func RegisterKVStore(name string, constructor KVStoreConstructor)

func RegisterTokenFilter

func RegisterTokenFilter(name string, constructor TokenFilterConstructor)

func RegisterTokenMap

func RegisterTokenMap(name string, constructor TokenMapConstructor)

func RegisterTokenizer

func RegisterTokenizer(name string, constructor TokenizerConstructor)

Types

type AnalyzerCache

type AnalyzerCache map[string]*analysis.Analyzer

func (AnalyzerCache) AnalyzerNamed

func (c AnalyzerCache) AnalyzerNamed(name string, cache *Cache) (*analysis.Analyzer, error)

func (AnalyzerCache) DefineAnalyzer

func (c AnalyzerCache) DefineAnalyzer(name string, typ string, config map[string]interface{}, cache *Cache) (*analysis.Analyzer, error)

type AnalyzerConstructor

type AnalyzerConstructor func(config map[string]interface{}, cache *Cache) (*analysis.Analyzer, error)

type AnalyzerRegistry

type AnalyzerRegistry map[string]AnalyzerConstructor

type Cache

type Cache struct {
	CharFilters     CharFilterCache
	Tokenizers      TokenizerCache
	TokenMaps       TokenMapCache
	TokenFilters    TokenFilterCache
	Analyzers       AnalyzerCache
	DateTimeParsers DateTimeParserCache
}

func NewCache

func NewCache() *Cache

func (*Cache) AnalyzerNamed

func (c *Cache) AnalyzerNamed(name string) (*analysis.Analyzer, error)

func (*Cache) CharFilterNamed

func (c *Cache) CharFilterNamed(name string) (analysis.CharFilter, error)

func (*Cache) DateTimeParserNamed

func (c *Cache) DateTimeParserNamed(name string) (analysis.DateTimeParser, error)

func (*Cache) DefineAnalyzer

func (c *Cache) DefineAnalyzer(name string, typ string, config map[string]interface{}) (*analysis.Analyzer, error)

func (*Cache) DefineCharFilter

func (c *Cache) DefineCharFilter(name string, typ string, config map[string]interface{}) (analysis.CharFilter, error)

func (*Cache) DefineDateTimeParser

func (c *Cache) DefineDateTimeParser(name string, typ string, config map[string]interface{}) (analysis.DateTimeParser, error)

func (*Cache) DefineTokenFilter

func (c *Cache) DefineTokenFilter(name string, typ string, config map[string]interface{}) (analysis.TokenFilter, error)

func (*Cache) DefineTokenMap

func (c *Cache) DefineTokenMap(name string, typ string, config map[string]interface{}) (analysis.TokenMap, error)

func (*Cache) DefineTokenizer

func (c *Cache) DefineTokenizer(name string, typ string, config map[string]interface{}) (analysis.Tokenizer, error)

func (*Cache) TokenFilterNamed

func (c *Cache) TokenFilterNamed(name string) (analysis.TokenFilter, error)

func (*Cache) TokenMapNamed

func (c *Cache) TokenMapNamed(name string) (analysis.TokenMap, error)

func (*Cache) TokenizerNamed

func (c *Cache) TokenizerNamed(name string) (analysis.Tokenizer, error)

type CharFilterCache

type CharFilterCache map[string]analysis.CharFilter

func (CharFilterCache) CharFilterNamed

func (c CharFilterCache) CharFilterNamed(name string, cache *Cache) (analysis.CharFilter, error)

func (CharFilterCache) DefineCharFilter

func (c CharFilterCache) DefineCharFilter(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.CharFilter, error)

type CharFilterConstructor

type CharFilterConstructor func(config map[string]interface{}, cache *Cache) (analysis.CharFilter, error)

type CharFilterRegistry

type CharFilterRegistry map[string]CharFilterConstructor

type DateTimeParserCache

type DateTimeParserCache map[string]analysis.DateTimeParser

func (DateTimeParserCache) DateTimeParserNamed

func (c DateTimeParserCache) DateTimeParserNamed(name string, cache *Cache) (analysis.DateTimeParser, error)

func (DateTimeParserCache) DefineDateTimeParser

func (c DateTimeParserCache) DefineDateTimeParser(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.DateTimeParser, error)

type DateTimeParserConstructor

type DateTimeParserConstructor func(config map[string]interface{}, cache *Cache) (analysis.DateTimeParser, error)

type DateTimeParserRegistry

type DateTimeParserRegistry map[string]DateTimeParserConstructor

type KVStoreConstructor

type KVStoreConstructor func(config map[string]interface{}) (store.KVStore, error)

func KVStoreConstructorByName

func KVStoreConstructorByName(name string) KVStoreConstructor

type KVStoreRegistry

type KVStoreRegistry map[string]KVStoreConstructor

type TokenFilterCache

type TokenFilterCache map[string]analysis.TokenFilter

func (TokenFilterCache) DefineTokenFilter

func (c TokenFilterCache) DefineTokenFilter(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.TokenFilter, error)

func (TokenFilterCache) TokenFilterNamed

func (c TokenFilterCache) TokenFilterNamed(name string, cache *Cache) (analysis.TokenFilter, error)

type TokenFilterConstructor

type TokenFilterConstructor func(config map[string]interface{}, cache *Cache) (analysis.TokenFilter, error)

type TokenFilterRegistry

type TokenFilterRegistry map[string]TokenFilterConstructor

type TokenMapCache

type TokenMapCache map[string]analysis.TokenMap

func (TokenMapCache) DefineTokenMap

func (c TokenMapCache) DefineTokenMap(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.TokenMap, error)

func (TokenMapCache) TokenMapNamed

func (c TokenMapCache) TokenMapNamed(name string, cache *Cache) (analysis.TokenMap, error)

type TokenMapConstructor

type TokenMapConstructor func(config map[string]interface{}, cache *Cache) (analysis.TokenMap, error)

type TokenMapRegistry

type TokenMapRegistry map[string]TokenMapConstructor

type TokenizerCache

type TokenizerCache map[string]analysis.Tokenizer

func (TokenizerCache) DefineTokenizer

func (c TokenizerCache) DefineTokenizer(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.Tokenizer, error)

func (TokenizerCache) TokenizerNamed

func (c TokenizerCache) TokenizerNamed(name string, cache *Cache) (analysis.Tokenizer, error)

type TokenizerConstructor

type TokenizerConstructor func(config map[string]interface{}, cache *Cache) (analysis.Tokenizer, error)

type TokenizerRegistry

type TokenizerRegistry map[string]TokenizerConstructor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL