scopemanager

package
v0.0.0-...-1599866 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MsgScopeManagerApproveScopeMultiple = "scopemanager/approve/scope/multiple"
View Source
const MsgScopeManagerApproveScopeSingle = "scopemanager/approve/scope/single"
View Source
const MsgScopeManagerRequestScopeMultiple = "scopemanager/request/scope/multiple"
View Source
const MsgScopeManagerRequestScopeSingle = "scopemanager/request/scope/single"

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	Name     string `json:"Name"`
	Value    string `json:"Value"`
	Approved bool   `json:"Approved"`
}

func (*Scope) EqualsTo

func (s *Scope) EqualsTo(o *Scope) bool

type ScopeManager

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

func NewScopeManager

func NewScopeManager(mq *messagequeue.MessageQueue) *ScopeManager

func (*ScopeManager) GetScopeApproved

func (sm *ScopeManager) GetScopeApproved(s *Scope) (bool, error)

func (*ScopeManager) GetScopes

func (sm *ScopeManager) GetScopes() []*Scope

func (*ScopeManager) InScopes

func (sm *ScopeManager) InScopes(s *Scope) bool

func (*ScopeManager) RequestScope

func (sm *ScopeManager) RequestScope(s *Scope)

func (*ScopeManager) RequestScopes

func (sm *ScopeManager) RequestScopes(s []*Scope)

func (*ScopeManager) SetApproveHandler

func (sm *ScopeManager) SetApproveHandler(f func())

Jump to

Keyboard shortcuts

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