Versions in this module Expand all Collapse all v0 v0.2.2 Oct 31, 2019 Changes in this version + type Adapter struct + func NewAdapter(driverName string, dataSourceName string) *Adapter + func NewAdapterByDB(db *sqlx.DB) *Adapter + func NewAdapterFromOptions(opts *AdapterOptions) *Adapter + func (a *Adapter) AddPolicy(sec string, ptype string, rule []string) (err error) + func (a *Adapter) LoadPolicy(model model.Model) error + func (a *Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) (err error) + func (a *Adapter) RemovePolicy(sec string, ptype string, rule []string) (err error) + func (a *Adapter) SavePolicy(model model.Model) (err error) + type AdapterOptions struct + DB *sqlx.DB + DataSourceName string + DriverName string + TableName string + type CasbinRule struct + ID uint + PType string + V0 string + V1 string + V2 string + V3 string + V4 string + V5 string