Discover Packages
github.com/feimingxliu/quicksearch
internal
config
package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Aug 1, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Auth struct {
Enabled bool `mapstructure:"enabled" json:"enabled" yaml:"enabled"`
Username string `mapstructure:"username" json:"username" yaml:"username"`
Password string `mapstructure:"password" json:"password" yaml:"password"`
}
type Config struct {
Env string `mapstructure:"env" json:"env" yaml:"env"`
Engine Engine `mapstructure:"engine" json:"engine" yaml:"engine"`
Storage Storage `mapstructure:"storage" json:"storage" yaml:"storage"`
Http Http `mapstructure:"http" json:"http" yaml:"http"`
}
type Engine struct {
DefaultNumberOfShards int `mapstructure:"default-number-of-shards" json:"default_number_of_shards" yaml:"default-number-of-shards"`
DefaultBatchSize int `mapstructure:"default-batch-size" json:"default_batch_size" yaml:"default-batch-size"`
DefaultSearchResultSize int `mapstructure:"default-search-result-size" json:"default_search_result_size" yaml:"default-search-result-size"`
}
type Http struct {
ServerAddr string `mapstructure:"server-addr" json:"server_addr" yaml:"server-addr"`
Auth Auth `mapstructure:"auth" json:"auth" yaml:"auth"`
}
type Storage struct {
MetaType string `mapstructure:"meta-type" json:"meta_type" yaml:"meta-type"`
DataDir string `mapstructure:"data-dir" json:"data_dir" yaml:"data-dir"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.