consul

package
v0.0.0-...-e4e76df Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulRegister

func NewConsulRegister(address string, opts ...Option) (registry.Registry, error)

NewConsulRegister create a new registry using consul.

func NewConsulRegisterWithConfig

func NewConsulRegisterWithConfig(config *api.Config, opts ...Option) (*consulRegistry, error)

NewConsulRegisterWithConfig create a new registry using consul, with a custom config.

func NewConsulResolver

func NewConsulResolver(address string) (discovery.Resolver, error)

NewConsulResolver create a service resolver using consul.

func NewConsulResolverWithConfig

func NewConsulResolverWithConfig(config *api.Config) (discovery.Resolver, error)

NewConsulResolverWithConfig create a service resolver using consul, with a custom config.

Types

type Option

type Option func(o *options)

Option is consul option.

func WithCheck

func WithCheck(check *api.AgentServiceCheck) Option

WithCheck is consul registry option to set AgentServiceCheck.

Jump to

Keyboard shortcuts

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