Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsulRegisterCenter ¶
func NewConsulRegisterCenter(opts ...ConsulRegisterCenterOptions) (registry.IRegistrar, error)
Types ¶
type ConsulRegisterCenter ¶
type ConsulRegisterCenter struct {
// contains filtered or unexported fields
}
func (*ConsulRegisterCenter) Deregister ¶
func (r *ConsulRegisterCenter) Deregister(ctx context.Context, service *registry.ServiceRegisterInfo) error
func (*ConsulRegisterCenter) Register ¶
func (r *ConsulRegisterCenter) Register(ctx context.Context, service *registry.ServiceRegisterInfo) error
type ConsulRegisterCenterOptions ¶
type ConsulRegisterCenterOptions func(o *ConsulRegisterCenter)
func WithConsulRegisterCenterClientConfig ¶
func WithConsulRegisterCenterClientConfig(clientConfig *consulApi.Config) ConsulRegisterCenterOptions
Click to show internal directories.
Click to hide internal directories.