config

package
v0.0.0-...-bd5e2c9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	URI      string `yaml:"uri"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

type RabbitMQ

type RabbitMQ struct {
	URI               string `yaml:"uri"`
	HeartbeatInterval int    `yaml:"heartbeatInterval"`
}

type ServiceConfig

type ServiceConfig struct {
	SwordTaskManagerConfig *SwordTaskManager `yaml:"sword-task-manager"`
	RabbitMQConfig         *RabbitMQ         `yaml:"rabbitmq"`
	MySQLConfig            *MySQL            `yaml:"mysql"`
}

ServiceConfig represents the configuration needed to run this service

func GetConfig

func GetConfig() (*ServiceConfig, error)

type SwordTaskManager

type SwordTaskManager struct {
	Exchange    string            `yaml:"exchange"`
	RoutingKeys map[string]string `yaml:"routing_keys"`
	Type        string            `yaml:"type"`
	Durable     bool              `yaml:"durable"`
}

SwordTaskManager represents the inner service configuration

Jump to

Keyboard shortcuts

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