Versions in this module Expand all Collapse all v2 v2.0.0 Jun 11, 2024 Changes in this version + func AddDepends(db *gorm.DB, res []rel.Res, resB rel.Res, relTyp ...rel.Type) error + func AddRelation(db *gorm.DB, resA rel.Res, resB rel.Res, relTyp ...rel.Type) error + func AddRelations(db *gorm.DB, resA rel.Res, res []rel.Res, relTyp ...rel.Type) error + func CheckOp(db *gorm.DB, res rel.Res, op rel.ResOp) error + func CheckRelation(db *gorm.DB, resA rel.Res, resB rel.Res, relTyp ...rel.Type) error + func DelRelation(db *gorm.DB, resA rel.Res, resB rel.Res, relTyp ...rel.Type) error + func DelRes(db *gorm.DB, res rel.Res) error + func GetDependents(db *gorm.DB, res rel.Res, relTypes ...rel.Type) ([]*rel.Relation, error) + func GetRelations(db *gorm.DB, res rel.Res, relTypes ...rel.Type) ([]*rel.Relation, error) + func Init(db *gorm.DB) error + func NewDependMgr(db *gorm.DB) (*internal.Mgr, error) + func Register(typ rel.ResType, op rel.ResOp, ignores []rel.ResType) error + type IDependMgr interface + AddDepends func(db *gorm.DB, res []rel.Res, relTyp rel.Type, idB string, typB rel.ResType) error + AddRelation func(db *gorm.DB, idA string, typA rel.ResType, relTyp rel.Type, idB string, ...) error + AddRelations func(db *gorm.DB, idA string, typA rel.ResType, relTyp rel.Type, res []rel.Res) error + CheckOp func(db *gorm.DB, id string, typ rel.ResType, op rel.ResOp) error + CheckRelation func(db *gorm.DB, idA string, typA rel.ResType, relTyp rel.Type, idB string, ...) error + DelRelation func(db *gorm.DB, idA string, typA rel.ResType, relTyp rel.Type, idB string, ...) error + DelRes func(db *gorm.DB, id string, typ rel.ResType) error + GetDependents func(db *gorm.DB, id string, typ rel.ResType, relTypes []rel.Type) ([]*rel.Relation, error) + GetRelations func(db *gorm.DB, id string, typ rel.ResType, relTypes []rel.Type) ([]*rel.Relation, error) + Register func(typ rel.ResType, op rel.ResOp, ignores []rel.ResType) error Other modules containing this package github.com/gromitlee/depend