Discover Packages
github.com/origadmin/runtime
middleware
security
internal
policy
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Dec 13, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package policy embedding the policy files for Casbin.
MustPolicy reads and returns the contents of a policy file from the embedded file system.
Note: This function is identical to Policy and may be removed in the future.
Args:
name (string): The name of the policy file to read.
Returns:
([]byte, error): The contents of the policy file as a byte slice, or an error if the file does not exist.
Policies returns the embedded file system containing all policies.
Policy reads and returns the contents of a policy file from the embedded file system.
Args:
name (string): The name of the policy file to read.
Returns:
([]byte, error): The contents of the policy file as a byte slice, or an error if the file does not exist.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.