mq

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "mq",
	Short: "mq admin",
	RunE: func(cmd *cobra.Command, args []string) error {
		var bc *clap.YamlConfig
		bc, err := clap.LoadConfigFile(cfgFile)
		if err != nil {
			return err
		}
		admin := rabbitmq.MustNewAdmin(bc.Conn)
		for _, name := range bc.Names {
			if err := createQueue(bc, admin, name); err != nil {
				log.Error(err)
			}
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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