grpc

package
v0.0.0-...-31da580 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscoverySchema   = "discovery:///"
	DefaultServiceTpl = "app.%s.service.grpc"
)

Variables

This section is empty.

Functions

func AppendHeader

func AppendHeader() middleware.Middleware

func AutoResolver

func AutoResolver(service string, opts ...Options) string

func GetEndPoint

func GetEndPoint(selector Selector, service string) string

func NewClientConnection

func NewClientConnection(r registry.Discovery, logger log.Logger, endpoint string) grpc2.ClientConnInterface

func Resolver

func Resolver(conf map[string]string, service string) string

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

type Options

type Options func(*Option)

type Selector

type Selector interface {
	Get(name string) string
}

func NewSelector

func NewSelector(opts ...Options) Selector

Jump to

Keyboard shortcuts

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