registry

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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 IRegistrar

type IRegistrar interface {
	Register(ctx context.Context, service *ServiceRegisterInfo) error
	Deregister(ctx context.Context, service *ServiceRegisterInfo) error
}

IRegistrar Service registration interface

type ServiceRegisterInfo

type ServiceRegisterInfo struct {
	ID   string
	Name string
	Tags []string

	// Used during service registration, it is a Host:Port
	Host string
	Port int

	SocketPath string
	Meta       map[string]string
	Namespace  string
	Version    string
	// Service Metadata
	Metadata map[string]string `json:"metadata"`
}

Jump to

Keyboard shortcuts

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