models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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() *Rule

func (*Rule) Cache added in v0.2.0

func (r *Rule) Cache() (bool, string, string)

*

  • Cache

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) GetPtype added in v0.2.0

func (r *Rule) GetPtype() string

func (*Rule) GetV0 added in v0.2.0

func (r *Rule) GetV0() string

func (*Rule) GetV1 added in v0.2.0

func (r *Rule) GetV1() string

func (*Rule) GetV2 added in v0.2.0

func (r *Rule) GetV2() string

func (*Rule) GetV3 added in v0.2.0

func (r *Rule) GetV3() string

func (*Rule) GetV4 added in v0.2.0

func (r *Rule) GetV4() string

func (*Rule) GetV5 added in v0.2.0

func (r *Rule) GetV5() string

func (*Rule) Model added in v0.2.0

func (r *Rule) Model() (string, string)

*

  • casbin model

func (*Rule) RefreshCache

func (r *Rule) RefreshCache()

*

  • Refresh Cache

func (*Rule) SetPtype added in v0.2.0

func (r *Rule) SetPtype(value string)

func (*Rule) SetV0 added in v0.2.0

func (r *Rule) SetV0(value string)

func (*Rule) SetV1 added in v0.2.0

func (r *Rule) SetV1(value string)

func (*Rule) SetV2 added in v0.2.0

func (r *Rule) SetV2(value string)

func (*Rule) SetV3 added in v0.2.0

func (r *Rule) SetV3(value string)

func (*Rule) SetV4 added in v0.2.0

func (r *Rule) SetV4(value string)

func (*Rule) SetV5 added in v0.2.0

func (r *Rule) SetV5(value string)

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