cosmos

package
v0.0.0-...-2e3e994 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PAGE_SIZE = 10

Variables

This section is empty.

Functions

func DeleteUserData

func DeleteUserData(
	ctx context.Context,
	udContainer *azcosmos.ContainerClient,
	nsContainer *azcosmos.ContainerClient,
	userId string,
	city string,
) error

func GetExistingIds

func GetExistingIds(ctx context.Context, container *azcosmos.ContainerClient, idsByPk map[string][]string) (map[string][]string, error)

func GetListingsQueryItemsPager

func GetListingsQueryItemsPager(
	container *azcosmos.ContainerClient,
	city string,
	query *models.ListingsQuery,
) *runtime.Pager[azcosmos.QueryItemsResponse]

func GetNonExistingIds

func GetNonExistingIds(ctx context.Context, container *azcosmos.ContainerClient, idsByPk map[string][]string) (map[string][]string, error)

func GetUserData

func GetUserData(ctx context.Context, container *azcosmos.ContainerClient, userId string) ([]models.UserData, error)

func GetUsersMatchingWithListing

func GetUsersMatchingWithListing(ctx context.Context, container *azcosmos.ContainerClient, listing *models.Listing) ([]string, error)

func InitClients

func InitClients() (client *azcosmos.Client, db *azcosmos.DatabaseClient)

func InitContainerClient

func InitContainerClient(db *azcosmos.DatabaseClient, containerName string) *azcosmos.ContainerClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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