rabbitmq

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 4

README

rabbitmq type

This type manages rabbitmq config

Required variables

The following env variables should be definned when using this type:

  • RABBITMQ_HOST defines rabbitmq host, it must be a string, it's default value is "localhost"
  • RABBITMQ_PORT defines rabbitmq port, it must be a valid port number, it's default value is 5672
  • RABBITMQ_USER defines rabbitmq user, it's default value is "guest"
  • RABBITMQ_PASSWORD defines rabbitmq user's password, it's default value is "guest"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnectionString string
	// contains filtered or unexported fields
}

Config is a type that defines required data for connecting to RabbitMQ server

func NewConfig

func NewConfig() (*Config, error)

NewConfig is the function that validates and returns Config instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳