MCPcopy Create free account
hub / github.com/kataras/iris / SetRegisterRule

Method SetRegisterRule

core/router/party.go:298–298  ·  view source on GitHub ↗

SetRegisterRule sets a `RouteRegisterRule` for this Party and its children. Available values are: * RouteOverride (the default one) * RouteSkip * RouteError * RouteOverlap.

(rule RouteRegisterRule)

Source from the content-addressed store, hash-verified

296 // * RouteError
297 // * RouteOverlap.
298 SetRegisterRule(rule RouteRegisterRule) Party
299
300 // Handle registers a route to the server's router.
301 // if empty method is passed then handler(s) are being registered to all methods, same as .Any.

Callers 7

newAppFunction · 0.65
newAppFunction · 0.65
VersionFunction · 0.65
TestControllerOverlapFunction · 0.65
TestRegisterRuleFunction · 0.65
TestRegisterRuleOverlapFunction · 0.65
NewGroupFunction · 0.65

Implementers 1

APIBuildercore/router/api_builder.go

Calls

no outgoing calls

Tested by 3

TestControllerOverlapFunction · 0.52
TestRegisterRuleFunction · 0.52
TestRegisterRuleOverlapFunction · 0.52