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 ¶
type AggregatingQuerier struct {
// contains filtered or unexported fields
}
AggregatingQuerier groups polling requests.
func NewAggregatingQuerier ¶
func NewAggregatingQuerier(log *zap.Logger, delegate Querier, api modshared.Api, pollConfig retry.PollConfigFactory, gcPeriod time.Duration) *AggregatingQuerier
func (*AggregatingQuerier) CachedKasUrlsByAgentId ¶
func (q *AggregatingQuerier) CachedKasUrlsByAgentId(agentId int64) []string
func (*AggregatingQuerier) PollKasUrlsByAgentId ¶
func (q *AggregatingQuerier) PollKasUrlsByAgentId(ctx context.Context, agentId int64, cb PollKasUrlsByAgentIdCallback)
type PollKasUrlsByAgentIdCallback ¶
type PollKasUrlsByAgentIdCallback func(kasUrls []string)
PollKasUrlsByAgentIdCallback is called periodically with found kas URLs for a particular agent id.
type PollingQuerier ¶
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 ¶
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.