config

package
v0.0.0-...-7b795ad Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Version     string // Номер версии сборки МС
	Name        string // Название сервиса
	DisplayName string // Отображаемое имя сервиса
	Description string // Описание сервиса
}

Информация о приложении

type Configuration

type Configuration struct {
	App     App     // Информация о приложении
	Logging Logging // Настройки логгирования
	Micro   Micro   // Данные для инициализации сервиса
}

type Logging

type Logging struct {
	Level          string // Уровень логгирования, варианты: debug, info, warning, error, fatal и panic
	IsReportCaller bool   // Показывать информацию о в каком месте был вызван лог
}

Настройки логгирования

type Micro

type Micro struct {
	// Данные для работы с реестром
	Registry        string
	RegistryAddress string

	// Данные для работы с брокером
	Broker        string
	BrokerAddress string

	// Данные для работы с траyспортом
	Transport        string
	TransportAddress string
}

Данные для инициализации сервиса

Jump to

Keyboard shortcuts

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