service

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 7 Imported by: 11 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package service uses the registry service

Index

Constants

This section is empty.

Variables

View Source
var (
	// The default service name
	DefaultService = "go.micro.registry"
)

Functions

func NewRegistry

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

NewRegistry returns a new registry service client

func ToProto

func ToProto(s *registry.Service) *pb.Service

func ToService

func ToService(s *pb.Service) *registry.Service

func WithClient added in v2.7.0

func WithClient(c client.Client) registry.Option

WithClient sets the RPC client

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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