commonMain.com.algolia.search.configuration.ConfigurationPlaces.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
"Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for Kotlin lets you easily use the Algolia Search REST API from your JVM project, such as Android or backend implementations."
@file:Suppress("FunctionName")
package com.algolia.search.configuration
import com.algolia.search.client.ClientPlaces
import com.algolia.search.configuration.internal.ConfigurationPlacesImpl
import com.algolia.search.configuration.internal.DEFAULT_LOG_LEVEL
import com.algolia.search.configuration.internal.DEFAULT_READ_TIMEOUT
import com.algolia.search.configuration.internal.DEFAULT_WRITE_TIMEOUT
import com.algolia.search.logging.LogLevel
import com.algolia.search.logging.Logger
import com.algolia.search.transport.internal.placesHosts
import io.ktor.client.HttpClientConfig
import io.ktor.client.engine.HttpClientEngine
/**
* Configuration used by [ClientPlaces].
*/
@Deprecated("Algolia Places has reached end of life.")
public interface ConfigurationPlaces : Configuration
public fun ConfigurationPlaces(
writeTimeout: Long = DEFAULT_WRITE_TIMEOUT,
readTimeout: Long = DEFAULT_READ_TIMEOUT,
logLevel: LogLevel = DEFAULT_LOG_LEVEL,
hosts: List = placesHosts,
defaultHeaders: Map? = null,
engine: HttpClientEngine? = null,
httpClientConfig: (HttpClientConfig<*>.() -> Unit)? = null,
logger: Logger = Logger.Simple,
): ConfigurationPlaces = ConfigurationPlacesImpl(
writeTimeout = writeTimeout,
readTimeout = readTimeout,
logLevel = logLevel,
hosts = hosts,
defaultHeaders = defaultHeaders,
engine = engine,
httpClientConfig = httpClientConfig,
logger = logger,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy