refresh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package refresh reads config refresh notification from AMQP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Refresh

type Refresh struct {
	C chan string // Channel C delivers applications names found in events.
	// contains filtered or unexported fields
}

Refresh holds data for worker that reads events from amqp and delivers applications found in channel `Refresh.C`.

func New

func New(amqpURL, consumerTag string, applications []string, debug bool, engine amqpEngine) *Refresh

New spawns a Refresh worker that reads events from amqp and delivers applications found in channel `Refresh.C`.

func (*Refresh) Close

func (r *Refresh) Close()

Close interrupts the refresh goroutine to release resources.

Jump to

Keyboard shortcuts

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