registry

package
v0.0.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package registry implements the functions, types, and interfaces for the module.

Index

Constants

View Source
const (
	SingleDatacenter = consul.SingleDatacenter
	MultiDatacenter  = consul.MultiDatacenter
	Type             = "consul"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = consul.Client

type Config

type Config = consul.Config

type Datacenter

type Datacenter = consul.Datacenter

type Option

type Option = consul.Option

func WithDatacenter

func WithDatacenter(datacenter Datacenter) Option

WithDatacenter is a wrapper for consul.WithDatacenter

func WithDeregisterCriticalServiceAfter

func WithDeregisterCriticalServiceAfter(duration int) Option

WithDeregisterCriticalServiceAfter is a wrapper for consul.WithDeregisterCriticalServiceAfter

func WithHealthCheck

func WithHealthCheck(check bool) Option

WithHealthCheck is a wrapper for consul.WithHealthCheck

func WithHealthCheckInterval

func WithHealthCheckInterval(interval int) Option

WithHealthCheckInterval is a wrapper for consul.WithHealthCheckInterval

func WithHeartbeat

func WithHeartbeat(heartbeat bool) Option

WithHeartbeat is a wrapper for consul.WithHeartbeat

func WithServiceCheck

func WithServiceCheck(check *api.AgentServiceCheck) Option

WithServiceCheck is a wrapper for consul.WithServiceCheck

func WithServiceResolver

func WithServiceResolver(resolver ServiceResolver) Option

WithServiceResolver is a wrapper for consul.WithServiceResolver

func WithTimeout

func WithTimeout(timeout time.Duration) Option

WithTimeout is a wrapper for consul.WithTimeout

type Registry

type Registry = consul.Registry

func New

func New(client *api.Client, opts ...Option) *Registry

New is a wrapper for consul.New

type ServiceResolver

type ServiceResolver = consul.ServiceResolver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL