sd

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISD

type ISD 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)
}

ISD is the service discovery interface.

type Option

type Option func(opts *Options)

type Options

type Options struct{}

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