scyllasource

package
v0.0.0-...-834ce46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func New

func New(db *scyllarepo.DB) *Repository

func (Repository) Create

func (r Repository) Create(source entity.Source) (entity.Source, error)

func (Repository) Delete

func (r Repository) Delete(source entity.Source) error

func (Repository) Exist

func (r Repository) Exist(sourceID string) (bool, error)

func (Repository) GetWithID

func (r Repository) GetWithID(id string) (entity.Source, error)

func (Repository) HaseMore

func (r Repository) HaseMore(ownerID string, lastToken int64, perPage int) (bool, error)

func (Repository) List

func (r Repository) List(ownerID string, lastToken int64, limit int) ([]entity.Source, error)

func (Repository) Update

func (r Repository) Update(source entity.Source) (entity.Source, error)

Jump to

Keyboard shortcuts

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