Documentation ¶
Index ¶
- type Model
- func (self *Model) CreateRelationship(ctx context.Context, typ int, ...) (primitive.ObjectID, error)
- func (self *Model) DeleteRelationship(ctx context.Context, typ int, userID, objectID primitive.ObjectID) error
- func (self *Model) DeleteRelationshipByID(ctx context.Context, id primitive.ObjectID) error
- func (self *Model) FilterByExtensionID(extensionID primitive.ObjectID) bson.D
- func (self *Model) FilterByExtensionIDs(extensionIDs []primitive.ObjectID) bson.D
- func (self *Model) FilterByObjectID(objectID primitive.ObjectID) bson.D
- func (self *Model) FilterByObjectOwnerUserID(objectOwnerUserID primitive.ObjectID) bson.D
- func (self *Model) FilterByRelationship(typ int, userID, objectID primitive.ObjectID) bson.D
- func (self *Model) FilterByType(typ int) bson.D
- func (self *Model) FilterByTypes(types []int) bson.D
- func (self *Model) FilterByUser(userID primitive.ObjectID) bson.D
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (*Model) CreateRelationship ¶
func (*Model) DeleteRelationship ¶
func (*Model) DeleteRelationshipByID ¶
func (*Model) FilterByExtensionID ¶
func (*Model) FilterByExtensionIDs ¶
func (*Model) FilterByObjectID ¶
func (*Model) FilterByObjectOwnerUserID ¶
func (*Model) FilterByRelationship ¶
Click to show internal directories.
Click to hide internal directories.