security

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatabase

func InitDatabase(m map[string]string, db *gorm.DB) (*casbin.Enforcer, error)

Types

type Casbin

type Casbin struct {
	types.ApplicationRunner `order:"100"`

	DS    datasource.DataSource `wire:"casbin.datasource"`
	Model map[string]string     `value:"casbin.model"`
	Log   log.Logger            `wire:""`
	// contains filtered or unexported fields
}

func NewStarter added in v1.3.6

func NewStarter() *Casbin

func (Casbin) GetEnforcer

func (r Casbin) GetEnforcer() *casbin.Enforcer

func (*Casbin) Run added in v1.3.7

func (r *Casbin) Run() error

Jump to

Keyboard shortcuts

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