models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Store cache.Driver
	Guard string
)

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Id    uint
	Ptype string
	V0    string
	V1    string
	V2    string
	V3    string
	V4    string
	V5    string
}

func NewRule

func NewRule(guard string) *Rule

func (*Rule) Connection

func (r *Rule) Connection() string

func (*Rule) DispatchesEvents

func (r *Rule) DispatchesEvents() map[contracts.EventType]func(contracts.Event) error

*

  • Dispatches events.

func (*Rule) GetAllFromCache

func (r *Rule) GetAllFromCache() ([]Rule, error)

get policy from cache

func (*Rule) RefreshCache

func (r *Rule) RefreshCache()

*

  • Refresh Cache

func (*Rule) TableName

func (r *Rule) TableName() string

Jump to

Keyboard shortcuts

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