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

commonMain.dev.programadorthi.routing.events.resources.EventResourcesConfiguration.kt Maven / Gradle / Ivy

package dev.programadorthi.routing.events.resources

import dev.programadorthi.routing.events.resources.serialization.EventResourcesFormat
import io.ktor.utils.io.KtorDsl
import kotlinx.serialization.modules.EmptySerializersModule
import kotlinx.serialization.modules.SerializersModule

/**
 * Event Resources plugin instance.
 */
public class EventResourcesConfiguration(configuration: Configuration) {
    /**
     * The format instance used to (de)serialize resources instances
     */
    public val resourcesFormat: EventResourcesFormat = EventResourcesFormat(configuration.serializersModule)

    /**
     * Configuration for the Resources plugin instance.
     */
    @KtorDsl
    public class Configuration {
        /**
         * [SerializersModule] used to (de)serialize the Resource instances.
         */
        public var serializersModule: SerializersModule = EmptySerializersModule()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy