Home / Type/ CustomConstraint Type — fiber Architecture

CustomConstraint Type — fiber Architecture

Architecture documentation for the CustomConstraint type/interface in path.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  df9da717_4a13_1488_0842_42ec364eefa1["CustomConstraint"]
  bedec411_93e0_4024_219e_79649f60a9be["path.go"]
  df9da717_4a13_1488_0842_42ec364eefa1 -->|defined in| bedec411_93e0_4024_219e_79649f60a9be
  style df9da717_4a13_1488_0842_42ec364eefa1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

path.go lines 86–96

type CustomConstraint interface {
	// Name returns the name of the constraint.
	// This name is used in the constraint matching.
	Name() string

	// Execute executes the constraint.
	// It returns true if the constraint is matched and right.
	// param is the parameter value to check.
	// args are the constraint arguments.
	Execute(param string, args ...string) bool
}

Defined In

Frequently Asked Questions

What is the CustomConstraint type?
CustomConstraint is a type/interface in the fiber codebase, defined in path.go.
Where is CustomConstraint defined?
CustomConstraint is defined in path.go at line 86.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free