mmm

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Unlicense Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MMAP_INFINITE_SIZE = 1 << 40
)

Variables

View Source
var FREERANGES_KEY = []byte{'F'}

Functions

This section is empty.

Types

type IndexingLayer

type IndexingLayer struct {
	ShouldIndex func(context.Context, *nostr.Event) bool
	MaxLimit    int
	// contains filtered or unexported fields
}

func (*IndexingLayer) Close

func (il *IndexingLayer) Close()

func (*IndexingLayer) DeleteEvent

func (il *IndexingLayer) DeleteEvent(ctx context.Context, evt *nostr.Event) error

func (*IndexingLayer) Init

func (il *IndexingLayer) Init() error

func (*IndexingLayer) QueryEvents

func (il *IndexingLayer) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)

func (*IndexingLayer) ReplaceEvent added in v0.16.0

func (il *IndexingLayer) ReplaceEvent(ctx context.Context, evt *nostr.Event) error

func (*IndexingLayer) SaveEvent added in v0.16.0

func (il *IndexingLayer) SaveEvent(ctx context.Context, evt *nostr.Event) error

type MultiMmapManager

type MultiMmapManager struct {
	Dir    string
	Logger *zerolog.Logger
	// contains filtered or unexported fields
}

func (*MultiMmapManager) Close

func (b *MultiMmapManager) Close()

func (*MultiMmapManager) EnsureLayer added in v0.16.1

func (b *MultiMmapManager) EnsureLayer(name string, il *IndexingLayer) error

func (*MultiMmapManager) Init

func (b *MultiMmapManager) Init() error

func (*MultiMmapManager) Load

func (b *MultiMmapManager) Load(pos position, eventReceiver *nostr.Event) error

func (*MultiMmapManager) StoreGlobal added in v0.16.0

func (b *MultiMmapManager) StoreGlobal(ctx context.Context, evt *nostr.Event) (stored bool, err error)

func (*MultiMmapManager) String

func (b *MultiMmapManager) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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