service

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry(opts ...Option) (registry.Registry, error)

NewRegistry returns a new registry service client

Types

type Option

type Option func(*Options)

func WithConn

func WithConn(c grpc.ClientConnInterface) Option

WithConn sets the gRPC connection

type Options

type Options struct {
	Addrs     []string
	Timeout   time.Duration
	Secure    bool
	TLSConfig *tls.Config
	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

type URLOpener

type URLOpener struct {
	grpc.ClientConnInterface
}

func (*URLOpener) OpenURL

func (o *URLOpener) OpenURL(ctx context.Context, u *url.URL) (registry.Registry, error)

Jump to

Keyboard shortcuts

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