discovery

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

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

func NewConsul

func NewConsul(config *config.App, configHttp *config.Http, configGrpc *config.Grpc) (*Consul, error)

func (*Consul) DeregisterService

func (c *Consul) DeregisterService() error

func (*Consul) DeregisterWorker

func (c *Consul) DeregisterWorker() error

func (*Consul) RegisterService

func (c *Consul) RegisterService() error

func (*Consul) RegisterWorker

func (c *Consul) RegisterWorker() error

type Discovery

type Discovery interface {
	RegisterService() error
	DeregisterService() error
	RegisterWorker() error
	DeregisterWorker() error
}

Jump to

Keyboard shortcuts

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