Documentation ¶
Index ¶
- type AggregatingQuerier
- type KasUrlsByAgentIdCallback
- type PollKasUrlsByAgentIdCallback
- type PollingQuerier
- type Querier
- type RedisTracker
- func (t *RedisTracker) KasUrlsByAgentId(ctx context.Context, agentId int64, cb KasUrlsByAgentIdCallback) error
- func (t *RedisTracker) RegisterTunnel(ctx context.Context, agentId int64) error
- func (t *RedisTracker) Run(ctx context.Context) error
- func (t *RedisTracker) UnregisterTunnel(ctx context.Context, agentId int64) error
- type Registerer
- type Tracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatingQuerier ¶ added in v15.7.0
type AggregatingQuerier struct {
// contains filtered or unexported fields
}
AggregatingQuerier groups polling requests.
func NewAggregatingQuerier ¶ added in v15.7.0
func NewAggregatingQuerier(log *zap.Logger, delegate Querier, api modshared.Api, pollConfig retry.PollConfigFactory, gcPeriod time.Duration) *AggregatingQuerier
func (*AggregatingQuerier) PollKasUrlsByAgentId ¶ added in v15.7.0
func (q *AggregatingQuerier) PollKasUrlsByAgentId(ctx context.Context, agentId int64, cb PollKasUrlsByAgentIdCallback)
type KasUrlsByAgentIdCallback ¶ added in v15.6.0
type PollKasUrlsByAgentIdCallback ¶ added in v15.7.0
PollKasUrlsByAgentIdCallback is called periodically for each found kas URL for a particular agent id. newCycle is set to true on the first item of a new polling cycle i.e. after poller has slept for the polling interval.
type PollingQuerier ¶ added in v15.7.0
type PollingQuerier interface {
PollKasUrlsByAgentId(ctx context.Context, agentId int64, cb PollKasUrlsByAgentIdCallback)
}
type Querier ¶
type Querier interface {
KasUrlsByAgentId(ctx context.Context, agentId int64, cb KasUrlsByAgentIdCallback) error
}
type RedisTracker ¶
type RedisTracker struct {
// contains filtered or unexported fields
}
func NewRedisTracker ¶
func (*RedisTracker) KasUrlsByAgentId ¶ added in v15.6.0
func (t *RedisTracker) KasUrlsByAgentId(ctx context.Context, agentId int64, cb KasUrlsByAgentIdCallback) error
func (*RedisTracker) RegisterTunnel ¶
func (t *RedisTracker) RegisterTunnel(ctx context.Context, agentId int64) error
func (*RedisTracker) UnregisterTunnel ¶
func (t *RedisTracker) UnregisterTunnel(ctx context.Context, agentId int64) error
type Registerer ¶
Click to show internal directories.
Click to hide internal directories.