scope

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package scope implements the common expression of scope.

Index

Constants

View Source
const (
	Management uint = iota
	Member
	Privacy
	User
)

The index of the flags for the scopes.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

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

Scope is the common expression of scope

func (Scope) IsSet

func (scope Scope) IsSet(index uint) bool

IsSet returns whether the flag identified with the given index is set.

func (Scope) IsSetAny

func (scope Scope) IsSetAny() bool

IsSetAny returns whether any flag is set.

func (Scope) Set

func (scope Scope) Set(index uint) Scope

Set returns scope.Scope which has the existing flags and the flag identified with the given index.

Jump to

Keyboard shortcuts

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