vertx / io.vertx.kotlin.ext.consul / serviceOf

# serviceOf

`fun serviceOf(address: String? = null, id: String? = null, meta: Map<String, String>? = null, name: String? = null, node: String? = null, nodeAddress: String? = null, port: Int? = null, tags: Iterable<String>? = null): Service`

A function providing a DSL for building io.vertx.ext.consul.Service objects.

Holds properties of service and node that its containing

### Parameters

`address` - Set service address

`id` - Set ID of service

`meta` - Specifies arbitrary KV metadata linked to the service instance.

`name` - Set service name

`node` - Set node name

`nodeAddress` - Set node address

`port` - Set service port

`tags` - Set list of service tags