discover

package
v0.0.0-...-3bb466a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetProvider

func SetProvider(p Provider)

Types

type Dialer

type Dialer interface {
	Dial() (io.ReadWriteCloser, error)
}

func Register

func Register(ctx context.Context, addr string, selfDesc ServiceDesc) (Dialer, error)

type Provider

type Provider interface {
	Register(ctx context.Context, addr string, selfDesc ServiceDesc) (Dialer, error)
}

type ServiceDesc

type ServiceDesc struct {
	Name       string
	RPCAddr    string
	StatusAddr string
}

Jump to

Keyboard shortcuts

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