route

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name   string
	Logger log.Logger
}

Config is a route svc config

type Picker

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

Picker ...

func (*Picker) Build

func (p *Picker) Build(buildInfo base.PickerBuildInfo) balancer.Picker

Build ...

func (*Picker) Pick

func (p *Picker) Pick(info balancer.PickInfo) (balancer.PickResult, error)

Pick ...

type Resolver

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

Resolver ...

func (*Resolver) Build

Build builds gRPC Resolver

func (*Resolver) Close

func (r *Resolver) Close()

Close ...

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(resolver.ResolveNowOptions)

ResolveNow ...

func (*Resolver) Scheme

func (r *Resolver) Scheme() string

Scheme returns resolver scheme

type Route

type Route struct {
	*Config
	// contains filtered or unexported fields
}

Route ...

func New

func New(config *Config) *Route

New returns Route instance

func (*Route) Name

func (r *Route) Name() string

Name returns router name

Jump to

Keyboard shortcuts

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