Documentation ¶ Index ¶ type Boundary func New(cfg Config, opts ...Option) *Boundary func (r *Boundary) Check(ctx *core.Context) []core.Violation func (r *Boundary) Spec() core.RuleSpec type Config type Option func WithSeverity(s core.Severity) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Boundary ¶ type Boundary struct { // contains filtered or unexported fields } func New ¶ func New(cfg Config, opts ...Option) *Boundary func (*Boundary) Check ¶ func (r *Boundary) Check(ctx *core.Context) []core.Violation func (*Boundary) Spec ¶ func (r *Boundary) Spec() core.RuleSpec type Config ¶ type Config struct { StartSymbols []string Types []string AllowedLayers []string } type Option ¶ type Option func(*Boundary) func WithSeverity ¶ func WithSeverity(s core.Severity) Option Source Files ¶ View all Source files boundary.go Click to show internal directories. Click to hide internal directories.