dev.pellet.server.PelletConnector.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pellet-server Show documentation
Show all versions of pellet-server Show documentation
An opinionated Kotlin web framework, with best-practices built-in
package dev.pellet.server
import dev.pellet.server.routing.http.HTTPRouting
sealed class PelletConnector {
data class HTTP(
val endpoint: Endpoint,
val router: HTTPRouting
) : PelletConnector() {
override fun toString(): String {
return "HTTP(hostname=${endpoint.hostname}, port=${endpoint.port}, router=$router)"
}
}
data class Endpoint(
val hostname: String,
val port: Int
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy