repository

package
v0.0.0-...-5e10734 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLinkRepository

func NewLinkRepository(conn *gocql.Session) port.LinkRepository

Types

type LinkRepository

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

func (*LinkRepository) Create

func (r *LinkRepository) Create(ctx context.Context, link *domain.Link) error

func (*LinkRepository) Delete

func (r *LinkRepository) Delete(ctx context.Context, hash string) error

func (*LinkRepository) FindByHash

func (r *LinkRepository) FindByHash(ctx context.Context, hash string) (*domain.Link, error)

func (*LinkRepository) Update

func (r *LinkRepository) Update(ctx context.Context, hash string, newURL string) error

Jump to

Keyboard shortcuts

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