utils

package
v0.0.0-...-08e4fbc Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointPusher

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

EndpointPusher pushes endpoints to registered channels if the ep is L3 reachable

func NewEndpointPusher

func NewEndpointPusher() *EndpointPusher

NewEndpointPusher .

func (*EndpointPusher) Push

func (p *EndpointPusher) Push(ctx context.Context, endpoints []string)

Push pushes endpoint candicates

func (*EndpointPusher) Register

func (p *EndpointPusher) Register(ch chan []string)

Register registers a channel that will receive the endpoints later

Jump to

Keyboard shortcuts

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