mongo

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URI string
	// contains filtered or unexported fields
}

Config ...

type Store

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

Store implementation of db interface

func New

func New(ctx context.Context, db *db.Store) (*Store, error)

New store

func (*Store) Add

func (s *Store) Add(ctx context.Context, source *v1.Link) (*v1.Link, error)

Add ...

func (*Store) Delete

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

Delete ...

func (*Store) Get

func (m *Store) Get(ctx context.Context, id string) (*v1.Link, error)

Get ...

func (*Store) List

func (m *Store) List(ctx context.Context, filter *query2.Filter) (*v1.Links, error)

List ...

func (*Store) Update

func (m *Store) Update(_ context.Context, _ *v1.Link) (*v1.Link, error)

Update ...

Jump to

Keyboard shortcuts

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