application

package
v0.0.0-...-4a2620c 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 Config

type Config struct {
	Postgres Postgres `yaml:"postgres"`
	IFaces   IFaces   `yaml:"ifaces"`
	Logger   Logger   `yaml:"logger"`
	Kafka    Kafka    `yaml:"kafka"`
}

Config represents configuration for the application

type IFaces

type IFaces struct {
	RESTPort    string `yaml:"rest_port"`
	MSGPort     string `yaml:"msg_listener_port"`
	AUTHAddress string `yaml:"auth_server_address"`
}

IFaces contains ports on services

type Kafka

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

Kafka keeps values to connect

type Logger

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

Logger has values for the logger

type Postgres

type Postgres struct {
	DSN string `yaml:"connection-string"`
}

Postgres represents configuration data for establishing connection

Jump to

Keyboard shortcuts

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