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:"FIREBASE_TOKEN_APP_PORT" yaml:"port" default:":6000"` TimeFormat string `env:"FIREBASE_TOKEN_APP_TIME_FORMAT" yaml:"time_format" default:"2006-01-02T15:04:05"` }
App holds the configuration values for the application.
type Producer ¶
type Producer struct { Brokers string `env:"KAFKA_BROKERS" yaml:"brokers" default:"192.168.1.229:9092"` Topic string `env:"KAFKA_UPDATE_FIREBASE_TOKEN_TOPIC" yaml:"topic" default:"update.firebase.token"` BatchSize int `env:"KAFKA_BATCH_SIZE" yaml:"batch_size" default:"1"` BatchTimeout int `env:"KAFKA_BATCH_TIMEOUT" yaml:"batch_timeout" default:"10"` }
Producer holds the configuration values for the Kafka producer.