@midwayjs/consulInterfacesIConsulRegisterInfoOptions版本:Next本页总览IConsulRegisterInfoOptions HierarchyRegisterOptionsIConsulRegisterInfoOptionsIndex PropertiesaddresscheckidnameporttagsProperties addressaddress: string服务地址optionalcheckcheck?: { http?: string; interval?: string; notes?: string; script?: string; status?: string; tcp?: string; ttl?: string }健康检查配置,组件默认会配置一个(检查间隔是3秒),如果指定 check=false 则关闭 consul 健康检查optionalidid?: string注册 id 标识,默认是 name:address:port 的组合namename: string服务名称portport: number服务端口optionaltagstags?: string[]服务标签
服务地址