badger

package
v0.0.0-...-b846fab Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store implementation of db interface

func New

func New(_ context.Context) (*Store, error)

New store

func (*Store) Add

func (b *Store) Add(_ context.Context, source *domain.Link) (*domain.Link, error)

Add - add

func (*Store) Delete

func (b *Store) Delete(ctx context.Context, id string) error

Delete - delete

func (*Store) Get

func (b *Store) Get(_ context.Context, id string) (*domain.Link, error)

Get - get

func (*Store) List

func (b *Store) List(_ context.Context, _ *v1.FilterLink) (*domain.Links, error)

List - list

func (*Store) Update

func (b *Store) Update(_ context.Context, _ *domain.Link) (*domain.Link, error)

Update - update

Jump to

Keyboard shortcuts

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