sd

package
v0.0.0-...-f06f3bb Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 1 Imported by: 12

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