sretools

package
v0.0.0-...-b227058 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute executes the commands. Called in main.Main()

func GetTargetHealth

func GetTargetHealth(arn string, n *AtomicInt, ch chan<- *List, svc *elasticloadbalancingv2.Client)

GetTargetHealth get tg health

Types

type AtomicInt

type AtomicInt struct {
	// contains filtered or unexported fields
}

AtomicInt state variable

func (*AtomicInt) Add

func (a *AtomicInt) Add()

Add adds n to the AtomicInt as a single atomic operation.

func (*AtomicInt) Value

func (a *AtomicInt) Value() int

Value returns the value of a.

type List

type List struct {
	ARN    string
	Status string
}

List struct for arn and current health status

type PlainFormatter

type PlainFormatter struct {
}

PlainFormatter Logging formatter

func (*PlainFormatter) Format

func (f *PlainFormatter) Format(entry *log.Entry) ([]byte, error)

Format returns log message

Jump to

Keyboard shortcuts

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