bouncemailcounter

package module
v0.0.0-...-7690d25 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 0 Imported by: 0

README

bounce-mail-counter

Requied environments

export KAFKA_TOPIC=""
export CONSUMER_GROUP=""
export KAFKA_BROKER=""
export MONGO_URI=""
export MONGO_DATABASE=""
export MONGO_COLLECTION=""
export TELEGRAM_CHAT_ID=
export TELEGRAM_BOT_TOKEN=""

Run:

cd bounce-mail-counter
  • App
    go run bounce_mail_counter/app/app.go
    
  • Worker
    go run bounce_mail_counter/worker/kafka_worker.go
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KafkaBroker        []string `envconfig:"KAFKA_BROKER"`
	KafkaTopic         string   `envconfig:"KAFKA_TOPIC"`
	KafkaConsumerGroup string   `envconfig:"CONSUMER_GROUP"`

	MongoUri        string `envconfig:"MONGO_URI"`
	MongoDataBase   string `envconfig:"MONGO_DATABASE"`
	MongoCollection string `envconfig:"MONGO_COLLECTION"`

	TelegramChatId   int64  `envconfig:"TELEGRAM_CHAT_ID"`
	TelegramBotToken string `envconfig:"TELEGRAM_BOT_TOKEN"`
}

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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