routing

package
v0.0.0-...-1a44e91 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// FetchRouteFromSpecification 查找满足给定规范的全部线路
	FetchRoutesForSpecification(rs cargo.RouteSpecification) []cargo.Itinerary
}

Service 提供对外部路由服务的访问

type ServiceMiddleware

type ServiceMiddleware func(Service) Service

ServiceMiddleware 为一个routing service定义一个中间件

func NewProxyingMiddleware

func NewProxyingMiddleware(ctx context.Context, proxyURL string) ServiceMiddleware

Jump to

Keyboard shortcuts

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