Documentation
¶
Index ¶
- type Map
- func (m *Map) GarbageCollect() error
- func (m *Map) Get(msgID common.MessageID) ([]byte, error)
- func (m *Map) OnCommand(cmd cborplugin.Command) error
- func (m *Map) Put(msgID common.MessageID, payload []byte) error
- func (m *Map) RegisterConsumer(svr *cborplugin.Server)
- func (m *Map) Shutdown()
- func (m *Map) Wait(msgID common.MessageID, response *cborplugin.Response)
- func (m *Map) Wake(msgID common.MessageID, payload []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
Map holds reference to the database and logger and provides methods to store and retrieve data
func (*Map) GarbageCollect ¶
GarbageCollect prunes the oldest bucket of entries when the map size limit is exceeded
func (*Map) RegisterConsumer ¶
func (m *Map) RegisterConsumer(svr *cborplugin.Server)
Click to show internal directories.
Click to hide internal directories.