Help us shape the future of Go! Take the 2026 Go Developer Survey

sources

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	Address     string
	IsAlive     bool
	Requests    int
	DisableTime time.Time
}

type Sources

type Sources struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(sources []string, lg *logger.Logger, disableTimeout time.Duration) *Sources

func (*Sources) Disable

func (s *Sources) Disable(sourceName string)

func (*Sources) GetSource

func (a *Sources) GetSource() (*Source, error)

func (*Sources) IncRequests

func (s *Sources) IncRequests(addr string)

Jump to

Keyboard shortcuts

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