onionstore

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 NewStore

func NewStore() *OnionStore

NewStore creates a nil onionstore.

func (*OnionStore) Add

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL