All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.pellet.server.PelletConnector.kt Maven / Gradle / Ivy

There is a newer version: 0.0.16
Show newest version
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