grpc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package grpc provides grpc server logic

Package grpc provides grpc server logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscovererServer added in v0.0.27

type DiscovererServer interface {
	discoverer.DiscovererServer
	Start(context.Context)
}

func New

func New(opts ...Option) (ds DiscovererServer, err error)

type Option

type Option func(*server) error

func WithDiscoverer

func WithDiscoverer(dsc service.Discoverer) Option

func WithIP added in v1.1.1

func WithIP(ip string) Option

WithIP returns the option to set the IP for server.

func WithName added in v1.1.1

func WithName(name string) Option

WithName returns the option to set the name for server.

Jump to

Keyboard shortcuts

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