memory

package
v0.0.0-...-059eb94 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() error

Types

type LinkMemoryStore

type LinkMemoryStore map[string]models.LinkInfo

func NewLinkMemoryStore

func NewLinkMemoryStore() (*LinkMemoryStore, error)

func (LinkMemoryStore) BatchWrite

func (l LinkMemoryStore) BatchWrite(ctx context.Context, uid string, originals []models.BatchOriginal) ([]string, error)

func (LinkMemoryStore) Delete

func (l LinkMemoryStore) Delete(_ context.Context, uid string, link string) error

func (LinkMemoryStore) Get

func (LinkMemoryStore) GetByUserID

func (l LinkMemoryStore) GetByUserID(_ context.Context, id string) ([]models.LinkJSON, error)

func (LinkMemoryStore) Ping

func (l LinkMemoryStore) Ping(_ context.Context) bool

func (LinkMemoryStore) Write

func (l LinkMemoryStore) Write(_ context.Context, uuid, long string) (string, error)

Jump to

Keyboard shortcuts

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