cqs

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: 9 Imported by: 0

Documentation

Overview

Store Endpoint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	LinkAdd(ctx context.Context, data *v1.Link) (*v1.Link, error)
	LinkUpdate(ctx context.Context, data *v1.Link) (*v1.Link, error)
	LinkDelete(ctx context.Context, id string) error

	MetadataUpdate(ctx context.Context, data *v12.Meta) (*v12.Meta, error)
}

type Store

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

Store abstract type

func New

func New(ctx context.Context, log logger.Logger, db *db.Store, cache *cache.Cache) (*Store, error)

New return implementation of db

func (*Store) LinkAdd

func (s *Store) LinkAdd(ctx context.Context, data *link.Link) (*link.Link, error)

func (*Store) LinkDelete

func (s *Store) LinkDelete(ctx context.Context, id string) error

func (*Store) LinkUpdate

func (s *Store) LinkUpdate(ctx context.Context, data *link.Link) (*link.Link, error)

func (*Store) MetadataUpdate

func (s *Store) MetadataUpdate(ctx context.Context, data *metadata.Meta) (*metadata.Meta, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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