Versions in this module Expand all Collapse all v4 v4.1.0 Nov 24, 2020 v4.0.1 Nov 20, 2020 Changes in this version + func GCEntries(policy ExpirationPolicy, next func() (Entry, error), gc func(e Entry) error) error + func GetLastEntryUpdate(s Entry) int64 + func IsEntryAdded(s Entry) bool + func IsEntryOutdated(s Entry, remote Entry) (outdated bool) + func IsEntryRemoved(s Entry) bool + type Entry interface + GetLastAdded func() int64 + GetLastDeleted func() int64 + type ExpirationPolicy func() int64 + func ExpireAfter8Hours() ExpirationPolicy + type MockedEntry struct + Data string + ID string + LastAdded int64 + LastDeleted int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MockedEntry) Descriptor() ([]byte, []int) + func (*MockedEntry) ProtoMessage() + func (m *MockedEntry) GetData() string + func (m *MockedEntry) GetID() string + func (m *MockedEntry) GetLastAdded() int64 + func (m *MockedEntry) GetLastDeleted() int64 + func (m *MockedEntry) Reset() + func (m *MockedEntry) String() string + func (m *MockedEntry) XXX_DiscardUnknown() + func (m *MockedEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MockedEntry) XXX_Merge(src proto.Message) + func (m *MockedEntry) XXX_Size() int + func (m *MockedEntry) XXX_Unmarshal(b []byte) error