application

package
v0.0.0-...-6bf298d Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context)

Start ...

func Stop

func Stop()

Stop ...

Types

type Compose

type Compose struct {
	Workers int `yaml:"workers"`
}

Compose holds number of workers composing smtp messages simultaneously

type Config

type Config struct {
	Logger  Logger  `yaml:"logger"`
	Kafka   Kafka   `yaml:"kafka"`
	Mail    Mail    `yaml:"mail"`
	Compose Compose `yaml:"compose"`
}

Config represents configuration for the application

type Kafka

type Kafka struct {
	Pub KafkaPub `yaml:"pub"`
	Sub KafkaSub `yaml:"sub"`
}

Kafka contains parameters for publisher and consumer

type KafkaPub

type KafkaPub struct {
	Server string `yaml:"server"`
	Topic  string `yaml:"topic"`
}

KafkaPub keeps values to send messages

type KafkaSub

type KafkaSub struct {
	Server  string `yaml:"server"`
	Topic   string `yaml:"topic"`
	GroupID string `yaml:"group_id"`
}

KafkaSub keeps values to read messages

type Logger

type Logger struct {
	Level string `yaml:"level"`
}

Logger has values for the logger

type Mail

type Mail struct {
	Rate int `yaml:"rate"`
}

Mail is about to configure smtp messages sender

Jump to

Keyboard shortcuts

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