memory

package
v0.0.0-...-af2c3ad Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryRepository

type MemoryRepository struct {
	SubscribedUsers map[int64]struct{}
	sync.RWMutex
}

func New

func New() *MemoryRepository

func (*MemoryRepository) Add

func (mr *MemoryRepository) Add(ctx context.Context, id int64) error

func (*MemoryRepository) Close

func (mr *MemoryRepository) Close()

func (*MemoryRepository) Del

func (mr *MemoryRepository) Del(ctx context.Context, id int64) error

func (*MemoryRepository) GetAll

func (mr *MemoryRepository) GetAll(ctx context.Context) ([]int64, error)

Jump to

Keyboard shortcuts

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