memory

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package memory implements the storage interface for a Conf BitTorrent tracker keeping peer data in memory.

Index

Constants

View Source
const (
	// Name - registered name of the storage
	Name = "memory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v0.0.8

type Builder struct{}

Builder is structure to create new in-memory peer or data storage

func (Builder) NewDataStorage added in v0.0.8

func (Builder) NewDataStorage(conf.MapConfig) (storage.DataStorage, error)

NewDataStorage creates new in-memory KV storage. Does not need configuration

func (Builder) NewPeerStorage added in v0.0.8

func (Builder) NewPeerStorage(icfg conf.MapConfig) (storage.PeerStorage, error)

NewPeerStorage creates new in-memory peer storage

Jump to

Keyboard shortcuts

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