Documentation ¶
Index ¶
- func FetchPoPStatusOverHTTP(ctx context.Context, ip netip.Addr) (*types.PoPStatus, error)
- type AnnotatedLookup
- type Config
- type FetchPoPStatusFunc
- type GslbCore
- func (c *GslbCore) PopIdFromIP(ip netip.Addr) string
- func (c *GslbCore) Query(srcIP netip.Addr) []netip.Addr
- func (c *GslbCore) Run(ctx context.Context) error
- func (c *GslbCore) Serial() uint32
- func (c *GslbCore) UpdateLatency(ctx context.Context)
- func (c *GslbCore) UpdatePoPStatus(ctx context.Context)
- type LatencyMeasurer
- type MakeLatencyMeasurerFunc
- type ProbeOverJSONRPC
- type RegionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnnotatedLookup ¶
type Config ¶
type Config struct { Pops []types.PoPInfo Regions []types.RegionInfo ProberSecret string HTTPServer string FetchPoPStatus FetchPoPStatusFunc MakeLatencyMeasurer MakeLatencyMeasurerFunc }
type FetchPoPStatusFunc ¶
FetchPoPStatus is a function that fetches PoP status from a PoP.
type GslbCore ¶
type GslbCore struct {
// contains filtered or unexported fields
}
func (*GslbCore) UpdateLatency ¶
func (*GslbCore) UpdatePoPStatus ¶
type LatencyMeasurer ¶
type MakeLatencyMeasurerFunc ¶
type MakeLatencyMeasurerFunc func(proberURL, secret string) LatencyMeasurer
type ProbeOverJSONRPC ¶
func (ProbeOverJSONRPC) DebugString ¶
func (p ProbeOverJSONRPC) DebugString() string
func (ProbeOverJSONRPC) MeasureLatency ¶
type RegionState ¶
type RegionState struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.