snatives

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermArgs

type PermArgs struct {
	PermFlag   types.PermFlag
	Address    *crypto.Address `json:",omitempty"`
	Permission *types.PermFlag `json:",omitempty"`
	Role       *string         `json:",omitempty"`
	Value      *bool           `json:",omitempty"`
}

func AddRoleArgs

func AddRoleArgs(address crypto.Address, role string) PermArgs

func HasBaseArgs

func HasBaseArgs(address crypto.Address, permFlag types.PermFlag) PermArgs

func HasRoleArgs

func HasRoleArgs(address crypto.Address, role string) PermArgs

func RemoveRoleArgs

func RemoveRoleArgs(address crypto.Address, role string) PermArgs

func SetBaseArgs

func SetBaseArgs(address crypto.Address, permFlag types.PermFlag, value bool) PermArgs

func SetGlobalArgs

func SetGlobalArgs(permFlag types.PermFlag, value bool) PermArgs

func UnsetBaseArgs

func UnsetBaseArgs(address crypto.Address, permFlag types.PermFlag) PermArgs

func (PermArgs) EnsureValid

func (pa PermArgs) EnsureValid() error

func (PermArgs) String

func (pa PermArgs) String() string

Jump to

Keyboard shortcuts

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