config

package
v0.0.0-...-90ad8ca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllWorkers  []sneaker.Worker
	AllWorkerIs []sneaker.WorkerI
)
View Source
var AmqpGlobalConfig struct {
	Connect struct {
		Host     string `yaml:"host"`
		Port     string `yaml:"port"`
		Username string `yaml:"username"`
		Password string `yaml:"password"`
		Vhost    string `yaml:"vhost"`
	} `yaml:"connect"`

	Exchange map[string]map[string]string `yaml:"exchange"`
	Queue    map[string]map[string]string `yaml:"queue"`
}
View Source
var (
	RabbitMqConnect sneaker.RabbitMqConnect
)

Functions

func InitAmqpConfig

func InitAmqpConfig()

func InitEnv

func InitEnv()

Types

type Env

type Env struct {
	Model string `yaml:"model"`
	Node  string `yaml:"node"`

	Newrelic struct {
		AppName    string `yaml:"app_name"`
		LicenseKey string `yaml:"license_key"`
	} `yaml:"newrelic"`

	Schedules []string `yaml:"schedules"`
}
var CurrentEnv Env

Jump to

Keyboard shortcuts

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