testing

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 6 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 {
	*inmem.Storage
}

StoreOnce is an in-memory storage that does not overrwite information on store

func New

func New(ctx context.Context) (*Storage, error)

New creates a new object that implements the Storage interface in memory. It is thread-safe.

func (*Storage) Store

Store implements the Storage interface.

If the message already exists, return a duplicate record error

Jump to

Keyboard shortcuts

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