Documentation ¶
Index ¶
- func Clear() error
- type LinkMemoryStore
- func (l LinkMemoryStore) BatchWrite(ctx context.Context, uid string, originals []models.BatchOriginal) ([]string, error)
- func (l LinkMemoryStore) Delete(_ context.Context, uid string, link string) error
- func (l LinkMemoryStore) Get(_ context.Context, s string) (string, error)
- func (l LinkMemoryStore) GetByUserID(_ context.Context, id string) ([]models.LinkJSON, error)
- func (l LinkMemoryStore) Ping(_ context.Context) bool
- func (l LinkMemoryStore) Write(_ context.Context, uuid, long string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkMemoryStore ¶
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) GetByUserID ¶
Click to show internal directories.
Click to hide internal directories.