requestroutersvc

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotRoute error = errors.New("cannot route to a handler because all routes for this target group are invalid")
View Source
var ErrNoRoutes error = errors.New("no routes exist for this target group")

Functions

This section is empty.

Types

type RouteResult

type RouteResult struct {
	Route   target.Route
	Handler handler.Handler
}

type Service

type Service struct {
	DB ddb.Storage
}

func (*Service) Route

func (s *Service) Route(ctx context.Context, tg target.Group) (*RouteResult, error)

Route is a very basic router that just chooses the highest priority valid and healthy deployment returns an error if none is found has no way of falling back to lower priority

Jump to

Keyboard shortcuts

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