Versions in this module Expand all Collapse all v1 v1.0.0 Jun 23, 2019 Changes in this version + type Adapter struct + func NewAdapter(driverName string, dataSourceName string, dbSpecified ...bool) *Adapter + func NewAdapterByDB(db *gorm.DB) *Adapter + func (a *Adapter) AddPolicy(sec string, ptype string, rule []string) error + func (a *Adapter) IsFiltered() bool + func (a *Adapter) LoadFilteredPolicy(model model.Model, filter interface{}) 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 + PType string + V0 string + V1 string + V2 string + V3 string + V4 string + V5 string + func (c *CasbinRule) TableName() string + type Filter struct + PType []string + V0 []string + V1 []string + V2 []string + V3 []string + V4 []string + V5 []string Other modules containing this package github.com/iugotech/gorm-adapter/v3