Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackoffResetCallback ¶
type BackoffResetCallback func(key interface{})
type BackoffStartCallback ¶
type BackoffStartCallback func(key interface{}, err error)
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
type CompareObjectHandleFunc ¶
type CompareObjectHandleFunc func(oldObj, newObj interface{}) *Result
type Core ¶
type Core struct { *Cache // contains filtered or unexported fields }
type HandleFuncs ¶
type HandleFuncs struct { OnAdded SingleObjectHandleFunc OnUpdated CompareObjectHandleFunc OnDeleting SingleObjectHandleFunc OnDeleted SingleObjectHandleFunc }
func (*HandleFuncs) ResolveNil ¶
func (h *HandleFuncs) ResolveNil() *HandleFuncs
type Options ¶
type Options struct { Logger log.Interface BackoffStrategy *backoff.Strategy Workers int RequireCache bool Handlers HandleFuncs OnBackoffStart BackoffStartCallback OnBackoffReset BackoffResetCallback }
func (Options) ResolveNil ¶
type SingleObjectHandleFunc ¶
type SingleObjectHandleFunc func(obj interface{}) *Result
Click to show internal directories.
Click to hide internal directories.