Documentation ¶
Index ¶
- Variables
- func CreateHost(input interface{}, idName *string) (int, error)
- func CreateObject(objType string, input interface{}, idName *string) (int, error)
- func CreateSubscription(input *types.Subscription) (int64, error)
- func DelHostByCondition(condition interface{}) error
- func DelObjByCondition(objType string, condition interface{}) error
- func DelSubscriptionByCondition(condition interface{}) error
- func GetCntByCondition(objType string, condition interface{}) (int, error)
- func GetHostByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error
- func GetHostCntByCondition(condition interface{}) (int, error)
- func GetIDNameByType(objType string) string
- func GetObjectByCondition(defLang language.DefaultCCLanguageIf, objType string, fields []string, ...) error
- func GetObjectByID(objType string, fields []string, id int, result interface{}, sort string) error
- func GetOneHostByCondition(fields []string, condition, result interface{}) error
- func GetOneSubscriptionByCondition(condition, result interface{}) error
- func GetSubscriptionByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error
- func GetSubscriptionCntByCondition(condition interface{}) (int, error)
- func UpdateHostByCondition(data interface{}, condition interface{}) error
- func UpdateObjByCondition(objType string, data interface{}, condition interface{}) error
- func UpdateSubscriptionByCondition(data interface{}, condition interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DataH storage.DI
Functions ¶
func CreateHost ¶
CreateHost create host
func CreateObject ¶
CreateObject add new object
func CreateSubscription ¶
func CreateSubscription(input *types.Subscription) (int64, error)
func DelHostByCondition ¶
func DelHostByCondition(condition interface{}) error
DelHostByCondition delete host by condition
func DelObjByCondition ¶
DelObjByCondition delete object by condition
func DelSubscriptionByCondition ¶
func DelSubscriptionByCondition(condition interface{}) error
func GetCntByCondition ¶
GetCntByCondition get count by condition
func GetHostByCondition ¶
func GetHostByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error
GetHostByCondition query
func GetHostCntByCondition ¶
GetHostCntByCondition query host count by condition
func GetIDNameByType ¶
GetIDNameByType get id name by type
func GetObjectByCondition ¶
func GetObjectByCondition(defLang language.DefaultCCLanguageIf, objType string, fields []string, condition, result interface{}, sort string, skip, limit int) error
GetObjectByCondition get object by condition
func GetObjectByID ¶
GetObjectByID get object by id
func GetOneHostByCondition ¶
func GetOneSubscriptionByCondition ¶
func GetOneSubscriptionByCondition(condition, result interface{}) error
func UpdateHostByCondition ¶
func UpdateHostByCondition(data interface{}, condition interface{}) error
UpdateHostByCondition update host by condition
func UpdateObjByCondition ¶
UpdateObjByCondition update object by condition
func UpdateSubscriptionByCondition ¶
func UpdateSubscriptionByCondition(data interface{}, condition interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.