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

io.arkitik.tracker.core.tracker.ext.kt Maven / Gradle / Ivy

package io.arkitik.tracker.core

import io.arkitik.tracker.core.config.TrackerConfig
import io.arkitik.tracker.core.model.TrackedPath
import org.springframework.http.HttpMethod

/**
 * Created By [*Ibrahim Al-Tamimi *](https://www.linkedin.com/in/iloom/)
 * Created At 18 1:42 AM, **Sat, September 2021**
 * Project *tracker* [https://arkitik.io]
 */

infix fun String.toTrackedPath(methods: Iterable): TrackedPath =
    TrackerConfig.TrackedPathImpl(this, methods.toSet())

infix fun Collection.toTrackedPaths(methods: Iterable) = map {
    it.toTrackedPath(methods)
}

infix fun Collection.toTrackedPaths(provider: () -> List) =
    toTrackedPaths(provider())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy