Documentation
¶
Index ¶
- type OnionStore
- func (s *OnionStore) Add(b *onionbuffer.OnionBuffer) error
- func (s *OnionStore) Destroy(b *onionbuffer.OnionBuffer) error
- func (s *OnionStore) DestroyAll() error
- func (s *OnionStore) DestroyExpiredBuffers() error
- func (s *OnionStore) Exists(bufName string) bool
- func (s *OnionStore) Get(bufName string) *onionbuffer.OnionBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnionStore ¶
type OnionStore struct { sync.RWMutex BufferFiles map[string]*onionbuffer.OnionBuffer }
func (*OnionStore) Add ¶
func (s *OnionStore) Add(b *onionbuffer.OnionBuffer) error
func (*OnionStore) Destroy ¶
func (s *OnionStore) Destroy(b *onionbuffer.OnionBuffer) error
func (*OnionStore) DestroyAll ¶
func (s *OnionStore) DestroyAll() error
func (*OnionStore) DestroyExpiredBuffers ¶
func (s *OnionStore) DestroyExpiredBuffers() error
DestroyExpiredBuffers will indefinitely loop through the store and destroy expired OnionBuffers.
func (*OnionStore) Exists ¶
func (s *OnionStore) Exists(bufName string) bool
func (*OnionStore) Get ¶
func (s *OnionStore) Get(bufName string) *onionbuffer.OnionBuffer
Click to show internal directories.
Click to hide internal directories.