Documentation ¶
Index ¶
- Constants
- func CleanDns()
- func ConvertPrice(price int, currency string) int
- func EliminateExtraSpace(s string) string
- func Geocode(address string) (float64, float64, error)
- func GetTelephoneNumber(s string) string
- func LoadEnvs(ctx *context.Context)
- func ReplaceAccentedChars(value string) string
- func ReplaceNewLine(s string) string
- func Slug(value []string) string
- func Title(s string) string
- func ToObjectId(id interface{}) (primitive.ObjectID, error)
- func TransformTelephoneNumber(s string) string
- type ContextKey
- type GeocodeResponse
- type MatchingStrategy
- type StatusRequest
Constants ¶
View Source
const BODYSTYLE_SOURCE_COLLECTION = "bodystyles"
View Source
const CARS_NON_PROCESSED_COLLECTION = "cars_non_processed"
View Source
const CARS_PROCESSED_COLLECTION = "cars_processed"
View Source
const DATABASE = "catalog"
View Source
const DB_URL_ENV_KEY = "DATABASE_URI"
View Source
const DEALERS_COLLECTION = "dealers_supercarros"
View Source
const DEALERS_SOURCE_COLLECTION = "dealers"
View Source
const DOP_TO_USD = 58
View Source
const DRIVETRAIN_SOURCE_COLLECTION = "drivetrains"
View Source
const FEATURE_SOURCE_COLLECTION = "features"
View Source
const FEE = 0
View Source
const FUELTYPE_SOURCE_COLLECTION = "fueltypes"
View Source
const TRANSFER = 0
View Source
const TRANSMISSION_SOURCE_COLLECTION = "transmissions"
Variables ¶
This section is empty.
Functions ¶
func ConvertPrice ¶
func EliminateExtraSpace ¶
func GetTelephoneNumber ¶
func ReplaceAccentedChars ¶
func ReplaceNewLine ¶
func ToObjectId ¶
Types ¶
type ContextKey ¶
type ContextKey string
const ( ProjectIdKey ContextKey = "projectId" BucketNameKey ContextKey = "bucketName" SubFolderPathKey ContextKey = "subFolderPath" CountryVersionId ContextKey = "countryVersionId" CategoryId ContextKey = "categoryId" GeoCode ContextKey = "geoCode" DbUri ContextKey = "dbUri" ProductionApiUrl ContextKey = "productionApiUrl" SessionSecret ContextKey = "sessionSecret" CityId ContextKey = "cityId" SpotId ContextKey = "spotId" )
type GeocodeResponse ¶
type MatchingStrategy ¶
type MatchingStrategy string
const ( ViaTrim MatchingStrategy = "trim" ViaUnmatched MatchingStrategy = "unmatched" )
func (MatchingStrategy) String ¶
func (f MatchingStrategy) String() string
type StatusRequest ¶
type StatusRequest string
const ( Success StatusRequest = "success" Failed StatusRequest = "failed" )
Click to show internal directories.
Click to hide internal directories.