main.misk.slack.webapi.RealSlackClientModule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of misk-slack Show documentation
Show all versions of misk-slack Show documentation
Open source application container in Kotlin
package misk.slack.webapi
import misk.client.TypedHttpClientModule
import misk.inject.KAbstractModule
import misk.slack.webapi.interceptors.SlackClientInterceptor
import misk.slack.webapi.interceptors.SlackSignedRequestsInterceptor
import misk.web.NetworkInterceptor
import okhttp3.Interceptor
class RealSlackClientModule(
private val config: SlackConfig,
) : KAbstractModule() {
override fun configure() {
install(TypedHttpClientModule.create("slack"))
multibind().to()
bind().to()
bind().toInstance(config)
multibind().to()
}
}