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/>.
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 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"` MessagesKeyFormat string `env:"CONSUMER_SUPERHERO_CHAT_REDIS_MESSAGES_KEY_FORMAT" yaml:"message_key_format" default:"messages.for.%s"` TokenKeyFormat string `env:"CONSUMER_SUPERHERO_CHAT_REDIS_TOKEN_KEY_FORMAT" yaml:"token_key_format" default:"token.%s"` }
Cache holds all the configuration settings for the Redis client.
type Consumer ¶
type Consumer struct { Brokers []string `env:"KAFKA_BROKERS" yaml:"brokers" default:"[192.168.1.229:9092]"` Topic string `env:"KAFKA_STORE_CHAT_MESSAGE" yaml:"topic" default:"store.chat.message"` GroupID string `env:"KAFKA_CONSUMER_CHAT_GROUP_ID" yaml:"group_id" default:"consumer.chat.group"` }
Consumer holds the configuration values for the Kafka consumer.
type DB ¶
type DB struct { Host string `env:"DB_HOST" yaml:"host" default:"192.168.1.229"` Port int `env:"DB_PORT" yaml:"port" default:"3306"` User string `env:"DB_USER" yaml:"user" default:"dev"` Password string `env:"DB_PASSWORD" yaml:"password" default:"Awesome85**"` Name string `env:"CONSUMER_SUPERHERO_CHAT_DB_NAME" yaml:"name" default:"chat"` }
DB holds the configuration values for the database.
type Firebase ¶
type Firebase struct { FunctionAddress string `` /* 142-byte string literal not displayed */ ContentType string `env:"FIREBASE_NEW_MESSAGE_CONTENT_TYPE" yaml:"content_type" default:"application/json"` }
Firebase holds all the Firebase related data.
type Health ¶
type Health struct { Port string `env:"CONSUMER_SUPERHERO_CHAT_HEALTH_SERVER_PORT" yaml:"port" default:":8040"` ShutdownEndpoint string `` /* 144-byte string literal not displayed */ ContentType string `env:"CONSUMER_SUPERHERO_CHAT_HEALTH_SERVER_CONTENT_TYPE" yaml:"content_type" default:"application/json"` }
Health holds configuration for health server.