Versions in this module Expand all Collapse all v2 v2.1.1 Jul 6, 2023 v2.1.0 Jul 5, 2022 v2.0.1 Jul 4, 2022 v2.0.0 Jul 4, 2022 Changes in this version + const CASBINRULE_TABLE_NAME + type Adapter struct + func NewAdapter(opts Options) *Adapter + func NewAdapterWithTableName(gdb gdb.DB, tableName string) *Adapter + func (a *Adapter) AddPolicy(sec string, ptype string, rule []string) error + func (a *Adapter) LoadPolicy(model model.Model) error + func (a *Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error + func (a *Adapter) RemovePolicy(sec string, ptype string, rule []string) error + func (a *Adapter) SavePolicy(model model.Model) error + type CasbinRule struct + Id int64 + PType string + V0 string + V1 string + V2 string + V3 string + V4 string + V5 string + type Options struct + GDB gdb.DB + TableName string Other modules containing this package github.com/hailaz/gf-casbin-adapter