Documentation ¶
Index ¶
- Variables
- func ConditionExpression(rule *entities.EndpointRule) (func(source string) bool, error)
- func ConditionSource(rule *entities.EndpointRule, msg *entities.Message) string
- func MatchAny() string
- func MatchEqual(value string) string
- func MatchPrefix(value string) string
- func NewRequest(timer timer.Timer, msg *entities.Message, ep *entities.Endpoint, ...) *entities.Request
- func PlanRequest(timer timer.Timer, msg *entities.Message, route *Route) (*entities.Request, []any)
- func PlanRequests(timer timer.Timer, msg *entities.Message, routes []Route) (map[string]*entities.Request, [][]any)
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConditionExpressionDivider = "::" ConditionExpressionAny = "any" ConditionExpressionEqual = "equal" ConditionExpressionPrefix = "prefix" )
View Source
var ( ErrConditionExpressionMalformed = errors.New("ROUTING.CONDITION.EXPRESSION.MALFORMED.ERROR") ErrConditionExpressionUnknown = errors.New("ROUTING.CONDITION.EXPRESSION.UNKNOWN.ERROR") )
View Source
var ( ConditionSourceType = "type" ConditionSourceAppId = "app_id" )
Functions ¶
func ConditionExpression ¶
func ConditionExpression(rule *entities.EndpointRule) (func(source string) bool, error)
func ConditionSource ¶
func ConditionSource(rule *entities.EndpointRule, msg *entities.Message) string
func MatchEqual ¶
func MatchPrefix ¶
func NewRequest ¶
func PlanRequest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.