Skip to content

paslavsky/exktor

Repository files navigation

Extension modules for Ktor

Version Java CI with Gradle GitHub License

ExKtor - it's set of extension libraries for Ktor that simplify integration with 3rd party applications.

Modules

Quick start

This guide shows how to setup ktor-elastic

Maven

<repositories>
    <repository>
        <id>exktor</id>
        <url>https://maven.pkg.github.com/paslavsky/exktor</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>net.paslavsky</groupId>
        <artifactId>ktor-elastic</artifactId>
        <version>${exktor.version}</version>
    </dependency>
</dependencies>

Gradle

repositories {
    maven {
        url = uri("https://maven.pkg.github.com/paslavsky/exktor")
    }
}

dependencies {
  implementation "net.paslavsky:ktor-elastic:$exktorVersion"
}

Configuring Elastic Rest Client

fun Application.module() {
    install(ElasticFeature) {
        hosts = arrayOf("http://my-elastic-host.com")
    }
    // ...
}

For more details please see module documentation

Contributing

Please use Issues to propose new ideas or report the bug. PR are welcome if you know how to fix or/and improve something 😸