config

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CasbinSetting

type CasbinSetting struct {
	Enabled                bool          `json:"enabled"`
	AutoLoadPolicyInterval time.Duration `json:"autoLoadPolicyInterval" yaml:"autoLoadPolicyInterval"`
	TablePrefix            string        `json:"tablePrefix" yaml:"tablePrefix"`
	TableName              string        `json:"tableName" yaml:"tableName"`
	ModelConfig            string        `json:"modelConfig" yaml:"modelConfig"`
}
var Setting *CasbinSetting = &CasbinSetting{
	Enabled:                false,
	AutoLoadPolicyInterval: time.Second * 5,
}

Jump to

Keyboard shortcuts

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