consul

package
v1.10.41 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(scheme string) *builder

Types

type ConsulConf

type ConsulConf struct {
	Host        string
	Key         string
	Token       string `json:",optional"`
	HealthCheck bool   `json:",default=true,optional"`
}

func (ConsulConf) Validate

func (c ConsulConf) Validate() error

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(config ConsulConf, listenOn string, opts ...PublisherOption) (*Publisher, error)

func (*Publisher) Deregister

func (p *Publisher) Deregister() error

func (*Publisher) Register

func (p *Publisher) Register() error

type PublisherOption

type PublisherOption func(client *Publisher)

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

implements grpc.naming.Resolver

func (*Resolver) Close

func (r *Resolver) Close()

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(opts resolver.ResolveNowOptions)

func (*Resolver) Watcher

func (r *Resolver) Watcher()

Jump to

Keyboard shortcuts

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