repo

package
v0.0.0-...-a3eebca Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IServiceProvidersRepo

type IServiceProvidersRepo interface {
	Ping(ctx context.Context) error
	GetNearCoordinates(ctx context.Context, locationQueryParams *LocationQueryParams, skip int64, limit int64) ([]models.ServiceProvider, error)
	Get(ctx context.Context, skip int64, limit int64) ([]models.ServiceProvider, error)
	GetOnline(ctx context.Context, skip int64, limit int64) ([]models.ServiceProvider, error)
	GetByID(ctx context.Context, id primitive.ObjectID) (models.ServiceProvider, error)
	Add(ctx context.Context, serviceProvider models.ServiceProvider) (string, error)
}

func NewMongoDBDataProvider

func NewMongoDBDataProvider(lifecycle fx.Lifecycle, cfg *config.Configuration) IServiceProvidersRepo

type LocationQueryParams

type LocationQueryParams struct {
	Lat         float64
	Lon         float64
	MaxDistance float64
}

Jump to

Keyboard shortcuts

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