inmemory

package
v0.0.0-...-9e351bc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewSubscribeInMemory

func NewSubscribeInMemory() *Storage

func (*Storage) Delete

func (s *Storage) Delete(_ context.Context, userID user.ID, wishlistID wishlist.ID) error

func (*Storage) Get

func (s *Storage) Get(_ context.Context, userID user.ID, wishlistID wishlist.ID) (*subscribePkg.Subscribe, error)

func (*Storage) GetByUser

func (s *Storage) GetByUser(_ context.Context, userID user.ID) ([]*subscribePkg.Subscribe, error)

func (*Storage) Upsert

func (s *Storage) Upsert(_ context.Context, subscribe *subscribePkg.Subscribe) error

Jump to

Keyboard shortcuts

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