repo

package
v0.0.0-...-eb5cc7f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	AddJourney(ctx context.Context, journey models.Journey) (uint64, error)
	MultiAddJourneys(ctx context.Context, journeys []models.Journey) ([]uint64, error)
	ListJourneys(ctx context.Context, limit, offset uint64) ([]models.Journey, error)
	DescribeJourney(ctx context.Context, journeyID uint64) (*models.Journey, error)
	RemoveJourney(ctx context.Context, journeyID uint64) error
	UpdateJourney(ctx context.Context, journey models.Journey) error
}

Repo - represents the object for working with storage of Journeys

func NewRepo

func NewRepo(db *sqlx.DB) Repo

NewRepo - creates new Journey repository using database

Jump to

Keyboard shortcuts

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