advert

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

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

Go to latest
Published: Apr 14, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresAdvertRepository

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

func NewPostgresAdvertRepository

func NewPostgresAdvertRepository(db *gorp.DbMap) *PostgresAdvertRepository

func (PostgresAdvertRepository) Add

func (repo PostgresAdvertRepository) Add(ctx context.Context, advert *advert.Advert) error

func (PostgresAdvertRepository) Delete

func (repo PostgresAdvertRepository) Delete(ctx context.Context, id uuid.UUID) error

func (PostgresAdvertRepository) Get

type RepositoryMock

type RepositoryMock struct {
	mock.Mock
}

RepositoryMock is an autogenerated mock type for the RepositoryMock type

func (*RepositoryMock) Add

func (_m *RepositoryMock) Add(ctx context.Context, _a1 *advert.Advert) error

Add provides a mock function with given fields: ctx, _a1

func (*RepositoryMock) Delete

func (_m *RepositoryMock) Delete(ctx context.Context, id uuid.UUID) error

Delete provides a mock function with given fields: ctx, id

func (*RepositoryMock) Get

func (_m *RepositoryMock) Get(ctx context.Context, id uuid.UUID) (advert.Advert, error)

Get provides a mock function with given fields: ctx, id

Jump to

Keyboard shortcuts

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