Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options(fx.Provide(NewMongoDBDataProvider))
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 ¶
Click to show internal directories.
Click to hide internal directories.