Documentation
¶
Index ¶
- type CachingDispatcher
- func (cd *CachingDispatcher) Close() error
- func (cd *CachingDispatcher) DispatchCheck(ctx context.Context, req *v1.DispatchCheckRequest) (*v1.DispatchCheckResponse, error)
- func (cd *CachingDispatcher) DispatchExpand(ctx context.Context, req *v1.DispatchExpandRequest) (*v1.DispatchExpandResponse, error)
- func (cd *CachingDispatcher) DispatchLookup(ctx context.Context, req *v1.DispatchLookupRequest) (*v1.DispatchLookupResponse, error)
- func (cd *CachingDispatcher) SetDelegate(delegate dispatch.Dispatcher)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachingDispatcher ¶ added in v1.2.0
type CachingDispatcher struct {
// contains filtered or unexported fields
}
func NewCachingDispatcher ¶
func NewCachingDispatcher( cacheConfig *ristretto.Config, prometheusSubsystem string, ) (*CachingDispatcher, error)
NewCachingDispatcher creates a new dispatch.Dispatcher which delegates dispatch requests and caches the responses when possible and desirable.
func (*CachingDispatcher) Close ¶ added in v1.2.0
func (cd *CachingDispatcher) Close() error
func (*CachingDispatcher) DispatchCheck ¶ added in v1.2.0
func (cd *CachingDispatcher) DispatchCheck(ctx context.Context, req *v1.DispatchCheckRequest) (*v1.DispatchCheckResponse, error)
DispatchCheck implements dispatch.Check interface
func (*CachingDispatcher) DispatchExpand ¶ added in v1.2.0
func (cd *CachingDispatcher) DispatchExpand(ctx context.Context, req *v1.DispatchExpandRequest) (*v1.DispatchExpandResponse, error)
DispatchExpand implements dispatch.Expand interface and does not do any caching yet.
func (*CachingDispatcher) DispatchLookup ¶ added in v1.2.0
func (cd *CachingDispatcher) DispatchLookup(ctx context.Context, req *v1.DispatchLookupRequest) (*v1.DispatchLookupResponse, error)
DispatchLookup implements dispatch.Lookup interface and does not do any caching yet.
func (*CachingDispatcher) SetDelegate ¶ added in v1.2.0
func (cd *CachingDispatcher) SetDelegate(delegate dispatch.Dispatcher)
SetDelegate sets the internal delegate to the specific dispatcher instance.
Click to show internal directories.
Click to hide internal directories.