Documentation ¶
Index ¶
- func GCEntries(policy ExpirationPolicy, next func() (Entry, error), gc func(id string) 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
- type ExpirationPolicy
- type MockedEntry
- func (*MockedEntry) Descriptor() ([]byte, []int)
- func (m *MockedEntry) GetData() string
- func (m *MockedEntry) GetID() string
- func (m *MockedEntry) GetLastAdded() int64
- func (m *MockedEntry) GetLastDeleted() int64
- func (*MockedEntry) ProtoMessage()
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastEntryUpdate ¶
func IsEntryAdded ¶
func IsEntryOutdated ¶
func IsEntryRemoved ¶
Types ¶
type ExpirationPolicy ¶
type ExpirationPolicy func() int64
func ExpireAfter8Hours ¶
func ExpireAfter8Hours() ExpirationPolicy
type MockedEntry ¶
type MockedEntry struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` LastAdded int64 `protobuf:"varint,2,opt,name=LastAdded,proto3" json:"LastAdded,omitempty"` LastDeleted int64 `protobuf:"varint,3,opt,name=LastDeleted,proto3" json:"LastDeleted,omitempty"` Data string `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MockedEntry) Descriptor ¶
func (*MockedEntry) Descriptor() ([]byte, []int)
func (*MockedEntry) GetData ¶
func (m *MockedEntry) GetData() string
func (*MockedEntry) GetID ¶
func (m *MockedEntry) GetID() string
func (*MockedEntry) GetLastAdded ¶
func (m *MockedEntry) GetLastAdded() int64
func (*MockedEntry) GetLastDeleted ¶
func (m *MockedEntry) GetLastDeleted() int64
func (*MockedEntry) ProtoMessage ¶
func (*MockedEntry) ProtoMessage()
func (*MockedEntry) Reset ¶
func (m *MockedEntry) Reset()
func (*MockedEntry) String ¶
func (m *MockedEntry) String() string
func (*MockedEntry) XXX_DiscardUnknown ¶ added in v0.0.51
func (m *MockedEntry) XXX_DiscardUnknown()
func (*MockedEntry) XXX_Marshal ¶ added in v0.0.51
func (m *MockedEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MockedEntry) XXX_Merge ¶ added in v0.0.51
func (m *MockedEntry) XXX_Merge(src proto.Message)
func (*MockedEntry) XXX_Size ¶ added in v0.0.51
func (m *MockedEntry) XXX_Size() int
func (*MockedEntry) XXX_Unmarshal ¶ added in v0.0.51
func (m *MockedEntry) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.