Documentation ¶
Index ¶
- Variables
- type Store
- func (m *Store) Delete(id uint16) error
- func (m *Store) Get(packetID uint16) (io.ReadCloser, error)
- func (m *Store) List() ([]uint16, error)
- func (m *Store) Put(packetID uint16, packetType byte, w io.WriterTo) error
- func (m *Store) Quarantine(id uint16) error
- func (m *Store) Reset() error
- func (m *Store) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInStore = errors.New("the requested ID was not found in the store") // Returned when requested ID not found
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { // server store - holds packets where the message ID was generated on the server sync.Mutex // contains filtered or unexported fields }
Store is an implementation of a Store that stores the data in memory
func (*Store) Quarantine ¶
Quarantine is called if a corrupt packet is detected. There is little we can do other than deleting the packet.
Click to show internal directories.
Click to hide internal directories.