tock / ai.tock.shared.vertx

Package ai.tock.shared.vertx

Vert.x related package

Types

DetailedHealthcheckResults

Used to construct JSON

data class DetailedHealthcheckResults

ImageGeneratorHandler

Provides a service that generates image using imageGenerator specified by paramExtractor.

class ImageGeneratorHandler<T : Any> : Handler<RoutingContext>

RequestLogger

A simple request logger.

interface RequestLogger

TaskResult

Used to construct JSON

data class TaskResult

WebVerticle

Base class for web Tock io.vertx.core.Verticles. Provides utility methods.

abstract class WebVerticle : AbstractVerticle

Exceptions

BadRequestException

Http 400 exception.

class BadRequestException : RestException

NotFoundException

Http 404 exception.

class NotFoundException : RestException

RestException

Base class for rest exceptions.

open class RestException : Exception

UnauthorizedException

Http 401 exception.

class UnauthorizedException : RestException

Extensions for External Classes

io.vertx.core.Vertx

io.vertx.ext.web.Route

Properties

defaultVertxOptions

default vert.x options in Tock.

var defaultVertxOptions: VertxOptions

vertx

The Tock Vertx entry point instance.

val vertx: Vertx

Functions

detailedHealthcheck

Return an HTTP handler which calls lambdas and construct the HTTP response

fun detailedHealthcheck(tasks: List<Pair<String, () -> Boolean>> = listOf(), selfCheck: () -> Boolean = { true }): (RoutingContext) -> Unit