state

package
v1.67.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Register

type Register int

GetIDs entity returned state

const (
	RegisterHealthy Register = iota
	RegisterRetryAfter
	RegisterRetryBackoff
)

GetIDs endpoint states

func (Register) String

func (r Register) String() string

type RegisterSM

type RegisterSM interface {
	// state getters
	State() Register
	RetryAfter() time.Duration
	// setters
	NextRetryAfter(duration time.Duration)
	NextRetryWithBackoff()
}

RegisterSM register endpoint state manager

func NewRegisterSM

func NewRegisterSM() RegisterSM

NewRegisterSM creates a new register endpoint state manager

Jump to

Keyboard shortcuts

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