router

package
v0.0.0-...-e25560c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRouter

type DefaultRouter struct {
	Prior       []string
	Rules       map[string]rule.Rule
	Egress      map[string]egress.Egress
	EgressGroup map[string][]string
}

func NewDefaultRouter

func NewDefaultRouter(e map[string]egress.Egress) *DefaultRouter

func (*DefaultRouter) Dispatch

func (d *DefaultRouter) Dispatch(m message.Metadata) egress.Egress

func (*DefaultRouter) Insert

func (d *DefaultRouter) Insert(ruleType, pattern, out, policy string, others ...any)

type Router

type Router interface {
	Dispatch(m message.Metadata) egress.Egress
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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