Skip to content

Naming Configurationn

Introduction records the mapping between service name and service instances.


Config Item Description
Version String
Version of config file
Config Struct
Mapping between service name and instances
Config{k} String
Service name
Config{v} Struct
A list of instances
Config{v}[].Host String
Instance address
Config{v}[].Port Integer
Instance port
Config{v}[].Weight Integer
Instance weight


    "Version": "20190101000000",
    "Config": {
        "example.redis.cluster": [
                "Host": "",
                "Port": 6439,
                "Weight": 10