sd

package
v0.0.0-...-0917088 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Options)

type Options

type Options struct{}

type SD

type SD interface {
	Register(ctx context.Context, service *Service, opts ...Option) error
	Deregister(ctx context.Context, service *Service) error
	Renew(ctx context.Context, service *Service) error
	Get(ctx context.Context, name string) ([]*Service, error)
}

SD is the service discovery interface.

type Service

type Service struct {
	ID      string
	Name    string
	Node    string
	Network string
	Address string
}

Jump to

Keyboard shortcuts

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