model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package model embedding the model files for Casbin.

Index

Constants

This section is empty.

Variables

View Source
var DefaultAbacModel string
View Source
var DefaultAclModel string
View Source
var DefaultRbacModel string
View Source
var DefaultRbacWithDomainModel string
View Source
var DefaultRestfullModel string
View Source
var DefaultRestfullWithRoleModel string

Functions

func Model

func Model(name string) (string, error)

Model reads a model from the embedded file system by name.

Args:

name (string): The name of the model to read.

Returns:

string: The contents of the model file.
error: Any error that occurred while reading the model file.

func Models

func Models() embed.FS

Models returns the embedded file system containing all models.

func MustModel

func MustModel(name string) string

MustModel reads a model from the embedded file system by name, panicking on error.

Args:

name (string): The name of the model to read.

Returns:

string: The contents of the model file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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