Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulRegister ¶
type ConsulRegister struct { ConsulAddress string // consul address ServiceName string // service name Tags []string // consul tags ServicePort int //service port MetricsPort int //service port DeregisterCriticalServiceAfter time.Duration Interval time.Duration // contains filtered or unexported fields }
func NewConsulRegister ¶
func (*ConsulRegister) NewConsulGRPCRegister ¶
func (r *ConsulRegister) NewConsulGRPCRegister() (*consulsd.Registrar, error)
https://github.com/ru-rocker/gokit-playground/blob/master/lorem-consul/register.go https://github.com/hatlonely/hellogolang/blob/master/sample/addservice/internal/grpcsr/consul_register.go
Click to show internal directories.
Click to hide internal directories.