Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulRegistry ¶
type ConsulRegistry struct {
// contains filtered or unexported fields
}
ConsulRegistry is consul registry
func NewConsulRegistry ¶
func NewConsulRegistry(options *regOps.RegistryOptions, opts ...Option) *ConsulRegistry
func (*ConsulRegistry) Deregister ¶
func (r *ConsulRegistry) Deregister(_ context.Context, svc *registry.ServiceInstance) error
Deregister deregister service
func (*ConsulRegistry) Register ¶
func (r *ConsulRegistry) Register(_ context.Context, svc *registry.ServiceInstance) error
Register register service
type Option ¶
type Option func(*ConsulRegistry)
Option is consul registry option.
func WithAgentServiceCheck ¶
func WithAgentServiceCheck(checks ...*api.AgentServiceCheck) Option
func WithDeregisterCriticalServiceAfter ¶
WithDeregisterCriticalServiceAfter with deregister-critical-service-after in seconds.
func WithHealthCheck ¶
WithHealthCheck with registry health check option.
func WithHealthCheckInterval ¶
WithHealthCheckInterval with healthcheck interval in seconds.
func WithHeartbeat ¶
WithHeartbeat enable or disable heartbeat
Click to show internal directories.
Click to hide internal directories.