permissions

package
Version: v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPMultipleMatch added in v0.1.4

func IPMultipleMatch(ips1 string, ips2 string) bool

IPMultipleMatch determines whether any of IP address in ip1 matches the pattern of any IP address in ip2, ip2 can be an IP address or a CIDR pattern.

func IPMultipleMatchFunc added in v0.1.4

func IPMultipleMatchFunc(args ...interface{}) (interface{}, error)

IPMultipleMatchFunc is the wrapper for IPMultipleMatch.

func Init

func Init(config viper.Viper) (*casbin.Enforcer, error)

Init creates and returns a new Enforcer

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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