static

package
v0.0.167 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "static"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RetryInterval time.Duration `yaml:"retryInterval" default:"60s"`
	NodeRecords   []string      `yaml:"nodeRecords"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Metrics

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

func NewMetrics

func NewMetrics(namespace string) *Metrics

func (*Metrics) SetPeers

func (m *Metrics) SetPeers(count int, status string)

type Static

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

func New

func New(name string, config *Config, handlers *handler.Peer, captureDelay time.Duration, log logrus.FieldLogger) (*Static, error)

func (*Static) Start

func (s *Static) Start(ctx context.Context) error

func (*Static) Stop

func (s *Static) Stop(ctx context.Context) error

func (*Static) Type

func (s *Static) Type() string

Jump to

Keyboard shortcuts

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