Documentation
¶
Index ¶
- type CacheHandler
- func (h *CacheHandler) GetPendingPackets(ctx context.Context, pushTo node.PushPacketsTo) (_ret []packet.Input, _err error)
- func (h *CacheHandler) OnAddPushPacketsTo(ctx context.Context, pushTo node.PushPacketsTo)
- func (h *CacheHandler) OnRemovePushPacketsTo(ctx context.Context, pushTo node.PushPacketsTo)
- func (h *CacheHandler) RememberPacketIfNeeded(ctx context.Context, pkt packet.Input) (_err error)
- func (h *CacheHandler) Reset(ctx context.Context)
- type CachePolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheHandler ¶
type CacheHandler struct {
Policy CachePolicy
// contains filtered or unexported fields
}
func New ¶
func New( cachePolicy CachePolicy, maxCachedPackets int, ) *CacheHandler
func (*CacheHandler) GetPendingPackets ¶
func (h *CacheHandler) GetPendingPackets( ctx context.Context, pushTo node.PushPacketsTo, ) (_ret []packet.Input, _err error)
func (*CacheHandler) OnAddPushPacketsTo ¶
func (h *CacheHandler) OnAddPushPacketsTo( ctx context.Context, pushTo node.PushPacketsTo, )
func (*CacheHandler) OnRemovePushPacketsTo ¶
func (h *CacheHandler) OnRemovePushPacketsTo( ctx context.Context, pushTo node.PushPacketsTo, )
func (*CacheHandler) RememberPacketIfNeeded ¶
func (*CacheHandler) Reset ¶
func (h *CacheHandler) Reset( ctx context.Context, )
type CachePolicy ¶
type CachePolicy int
const ( UndefinedCachePolicy CachePolicy = iota CachePolicyDisabled CachePolicySinceLastKeyFrame EndOfCachePolicy )
Click to show internal directories.
Click to hide internal directories.