scope

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Define added in v0.3.0

func Define[S Scoper](engine *Engine, scope S) S

func Equal added in v0.3.0

func Equal(a, b Scoper) bool

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine() *Engine

func (*Engine) ParseAnyScopes added in v0.3.0

func (engine *Engine) ParseAnyScopes(s string) Scopes

func (*Engine) ParseDefinedScopes added in v0.3.0

func (engine *Engine) ParseDefinedScopes(s string) Scopes

func (*Engine) ParseScope

func (engine *Engine) ParseScope(s string) (Scoper, bool)

func (*Engine) ParseUndefinedScopes added in v0.3.0

func (engine *Engine) ParseUndefinedScopes(s string) Scopes

type Scope

type Scope struct {
	// contains filtered or unexported fields
}

func New

func New(value string) *Scope

func (*Scope) Scope added in v0.3.0

func (scope *Scope) Scope() string

type Scoper

type Scoper interface {
	Scope() string
}

type Scopes

type Scopes []Scoper

func NewScopes

func NewScopes(s ...Scoper) Scopes

func (Scopes) Contains

func (scopes Scopes) Contains(target ...Scoper) bool

func (Scopes) String

func (s Scopes) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL