Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(config storage.PortalStorageConfig, db *pebble.DB) (storage.ContentStorage, error)
Types ¶
type ContentStorage ¶
type ContentStorage struct {
// contains filtered or unexported fields
}
func (*ContentStorage) Close ¶
func (c *ContentStorage) Close() error
func (*ContentStorage) Get ¶
func (c *ContentStorage) Get(contentKey []byte, contentId []byte) ([]byte, error)
Get implements storage.ContentStorage.
func (*ContentStorage) Put ¶
func (c *ContentStorage) Put(contentKey []byte, contentId []byte, content []byte) error
Put implements storage.ContentStorage.
func (*ContentStorage) Radius ¶
func (c *ContentStorage) Radius() *uint256.Int
Radius implements storage.ContentStorage.
Click to show internal directories.
Click to hide internal directories.