Documentation ¶
Index ¶
- type Callbacks
- func (cb *Callbacks) OnDeltaStreamClosed(id int64)
- func (cb *Callbacks) OnDeltaStreamOpen(_ context.Context, id int64, typ string) error
- func (cb *Callbacks) OnFetchRequest(_ context.Context, req *discovery.DiscoveryRequest) error
- func (cb *Callbacks) OnFetchResponse(*discovery.DiscoveryRequest, *discovery.DiscoveryResponse)
- func (cb *Callbacks) OnStreamClosed(id int64)
- func (cb *Callbacks) OnStreamDeltaRequest(id int64, req *discovery.DeltaDiscoveryRequest) error
- func (cb *Callbacks) OnStreamDeltaResponse(id int64, req *discovery.DeltaDiscoveryRequest, ...)
- func (cb *Callbacks) OnStreamOpen(_ context.Context, id int64, typ string) error
- func (cb *Callbacks) OnStreamRequest(id int64, req *discovery.DiscoveryRequest) error
- func (cb *Callbacks) OnStreamResponse(context.Context, int64, *discovery.DiscoveryRequest, ...)
- func (cb *Callbacks) Report()
- func (cb *Callbacks) Stop()
- type SdsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callbacks ¶ added in v1.1.0
type Callbacks struct { Logger log.Logger Signal chan struct{} Fetches int Requests int DeltaRequests int DeltaResponses int // contains filtered or unexported fields }
func NewCallbacks ¶ added in v1.1.1
func NewCallbacks(s *subscription.Subscriber, l log.Logger) *Callbacks
func (*Callbacks) OnDeltaStreamClosed ¶ added in v1.1.0
func (*Callbacks) OnDeltaStreamOpen ¶ added in v1.1.0
func (*Callbacks) OnFetchRequest ¶ added in v1.1.0
func (*Callbacks) OnFetchResponse ¶ added in v1.1.0
func (cb *Callbacks) OnFetchResponse(*discovery.DiscoveryRequest, *discovery.DiscoveryResponse)
func (*Callbacks) OnStreamClosed ¶ added in v1.1.0
func (*Callbacks) OnStreamDeltaRequest ¶ added in v1.1.0
func (cb *Callbacks) OnStreamDeltaRequest(id int64, req *discovery.DeltaDiscoveryRequest) error
func (*Callbacks) OnStreamDeltaResponse ¶ added in v1.1.0
func (cb *Callbacks) OnStreamDeltaResponse(id int64, req *discovery.DeltaDiscoveryRequest, res *discovery.DeltaDiscoveryResponse)
func (*Callbacks) OnStreamOpen ¶ added in v1.1.0
func (*Callbacks) OnStreamRequest ¶ added in v1.1.0
func (cb *Callbacks) OnStreamRequest(id int64, req *discovery.DiscoveryRequest) error
func (*Callbacks) OnStreamResponse ¶ added in v1.1.0
func (cb *Callbacks) OnStreamResponse(context.Context, int64, *discovery.DiscoveryRequest, *discovery.DiscoveryResponse)
Click to show internal directories.
Click to hide internal directories.