Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextContains ¶
ContextContains returns true if the argument is encompassed in general scope and current program scope. If the context doesn't have a Scope, this function behaves like gate/scope.ContextContains.
func ContextWithScope ¶
func ContextWithScope(ctx Context) Context
ContextWithScope adds program scope.
Types ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
Scope is dynamic program scope filter. It is unrestricted by default.
func ContextScope ¶
func ContextScope(ctx Context) *Scope
ContextScope returns the contextual program scope or nil.
Click to show internal directories.
Click to hide internal directories.