libp2p/protocols/pubsub/mcache

    Dark Mode
Search:
Group by:
  Source   Edit

Types

CacheEntry = object
  mid*: MessageId
  topicId*: string
  Source   Edit
MCache = object of RootObj
  msgs*: Table[MessageId, Message]
  history*: seq[seq[CacheEntry]]
  windowSize*: Natural
  Source   Edit

Procs

func contains(c: MCache; mid: MessageId): bool {....raises: [], tags: [].}
  Source   Edit
func get(c: MCache; mid: MessageId): Option[Message] {....raises: [], tags: [].}
  Source   Edit
func init(T: type MCache; window, history: Natural): T:type {....raises: [].}
  Source   Edit
func put(c: var MCache; msgId: MessageId; msg: Message) {....raises: [], tags: [].}
  Source   Edit
func shift(c: var MCache) {....raises: [], tags: [].}
  Source   Edit
func window(c: MCache; topic: string): HashSet[MessageId] {....raises: [], tags: [].}
  Source   Edit