跳到主要内容
版本:Next

IConsulRegisterInfoOptions

Hierarchy

  • RegisterOptions
    • IConsulRegisterInfoOptions

Index

Properties

address

address: string

服务地址

optionalcheck

check?: { http?: string; interval?: string; notes?: string; script?: string; status?: string; tcp?: string; ttl?: string }

健康检查配置,组件默认会配置一个(检查间隔是3秒),如果指定 check=false 则关闭 consul 健康检查

optionalid

id?: string

注册 id 标识,默认是 name:address:port 的组合

name

name: string

服务名称

port

port: number

服务端口

optionaltags

tags?: string[]

服务标签