Documentation
¶
Overview ¶
Copyright (C) 2019 - 2022 MWSOFT This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2019 - 2022 MWSOFT This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2019 - 2022 MWSOFT This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Port string `env:"SUPERHERO_SUGGESTIONS_APP_PORT" yaml:"port" default:":4000"`
TimeFormat string `env:"SUPERHERO_SUGGESTIONS_APP_TIME_FORMAT" yaml:"time_format" default:"2006-01-02T15:04:05"`
PageSize int `env:"SUPERHERO_SUGGESTIONS_APP_PAGE_SIZE" yaml:"page_size" default:"10"`
}
App holds the configuration values for the application.
type Cache ¶
type Cache struct {
Address string `env:"REDIS_ADDRESS" yaml:"address" default:"192.168.1.229"`
Port string `env:"REDIS_PORT" yaml:"port" default:":6379"`
Password string `env:"REDIS_PASSWORD" yaml:"password" default:"Awesome85**"`
DB int `env:"REDIS_DB" yaml:"db" default:"0"`
PoolSize int `env:"REDIS_POOL_SIZE" yaml:"pool_size" default:"25"`
MinimumIdleConnections int `env:"REDIS_MINIMUM_IDLE_CONNECTIONS" yaml:"minimum_idle_connections" default:"10"`
MaximumRetries int `env:"REDIS_MAXIMUM_RETRIES" yaml:"maximum_retries" default:"1"`
SuggestionKeyFormat string `env:"SUPERHERO_SUGGESTIONS_REDIS_SUGGESTION_KEY_FORMAT" yaml:"suggestion_key_format" default:"suggestion.%s"`
ChoiceKeyFormat string `env:"SUPERHERO_SUGGESTIONS_REDIS_CHOICE_KEY_FORMAT" yaml:"choice_key_format" default:"choice.%s.%s"`
LikesKeyFormat string `env:"SUPERHERO_SUGGESTIONS_REDIS_LIKES_KEY_FORMAT" yaml:"likes_key_format" default:"likes.for.%s"`
}
Cache holds all the configuration settings for the Redis client.
type ES ¶
type ES struct {
Host string `env:"ES_HOST" yaml:"host" default:"192.168.1.229"`
Port string `env:"ES_PORT" yaml:"port" default:"9200"`
Cluster string `env:"ES_CLUSTER" yaml:"cluster" default:"superheromatch"`
Index string `env:"ES_INDEX" yaml:"index" default:"superhero"`
BatchSize int `env:"ES_BATCH_SIZE" yaml:"batch_size" default:"50"`
}
ES holds the configuration values for the Elasticsearch client.