extconsul

package
v0.0.0-...-aa3d5c5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoFitService = errors.New("no fit service")
)

Functions

This section is empty.

Types

type ConsulRegister

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

func New

func New(
	logger dinfra.Logger,
	options *ConsulRegisterOptions,
) (*ConsulRegister, error)

func (*ConsulRegister) Get

func (register *ConsulRegister) Get(name string) (*dinfra.MicroService, error)

func (*ConsulRegister) Register

func (*ConsulRegister) Register(service *dinfra.MicroService) error

type ConsulRegisterOptions

type ConsulRegisterOptions struct {
	Address string
	Token   string

	Env string
}

Jump to

Keyboard shortcuts

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