Versions in this module Expand all Collapse all v0 v0.1.0 Apr 4, 2024 Changes in this version + func AddWebhookConfig(c *gin.Context) + func CreateCondition(c *gin.Context) + func DalAddWebhookConfig(req *AddWebhookConfigRequest) (*model.WebHook, *model.WebHookCondition, []model.NeedNode) + func DalCreateCondition(req *CreateConditionRequest) *model.WebHookCondition + func DalDeleteCondition(id int64) + func DalGetAllConditionsByPage(page int, pageSize int) ([]*model.WebHookCondition, int64, error) + func DalGetConditionById(id int64) *model.WebHookCondition + func DalGetNeedNodesByWebhookId(id int64) []*model.NeedNode + func DalGetWebhookConfigById(id int64) (*model.WebHook, *model.WebHookCondition) + func DalGetWebhookConfigByName(name string) *model.WebHook + func DalUpdateCondition(id int64, req *UpdateConditionRequest) *model.WebHookCondition + func DeleteCondition(c *gin.Context) + func GetAllConditionsByPage(c *gin.Context) + func GetConditionById(c *gin.Context) + func GetNeedeNodesListByWebhookId(id int64) []string + func GetWebhookConfigById(c *gin.Context) + func GetWebhookConfigByName(c *gin.Context) + func RegisterRoutes(router *gin.RouterGroup) + func ServiceDeleteCondition(id string) + func UpdateCondition(c *gin.Context) + func WebHookExample(c *gin.Context) + type AddWebhookConfigRequest struct + Active *bool + ConditionId *int64 + Name *string + NeedNodeList []string + Url string + When *globaldata.Condition + type AddWebhookConfigResponse struct + Code int + Data WebHookConfigRead + Message string + type CreateConditionRequest struct + And []globaldata.Condition + Or []globaldata.Condition + Rule *globaldata.Rule + type CreateConditionResponse struct + Code int + Data WebHookConditionRead + Message string + type DeleteConditionResponse struct + Code int + Message string + type GetAllConditionsByPageData struct + Conditions []WebHookConditionRead + Total int64 + type GetAllConditionsByPageRequest struct + Page int + PageSize int + type GetAllConditionsByPageResponse struct + Code int + Data GetAllConditionsByPageData + Message string + type GetConditionByIdResponse struct + Code int + Data WebHookConditionRead + Message string + type GetWebhookConfigByIdResponse struct + Code int + Data WebHookConfigRead + Message string + type GetWebhookConfigByNameRequest struct + Name string + type GetWebhookConfigByNameResponse struct + Code int + Data WebHookConfigRead + Message string + type UpdateConditionRequest struct + And []globaldata.Condition + Or []globaldata.Condition + Rule *globaldata.Rule + type UpdateConditionResponse struct + Code int + Data WebHookConditionRead + Message string + type WebHookConditionRead struct + Condition string + CreatedAt time.Time + Id int64 + UpdatedAt time.Time + func ServiceCreateCondition(req *CreateConditionRequest) WebHookConditionRead + func ServiceGetAllConditionsByPage(req GetAllConditionsByPageRequest) ([]WebHookConditionRead, int64) + func ServiceGetConditionById(id string) WebHookConditionRead + func ServiceUpdateCondition(id string, req *UpdateConditionRequest) WebHookConditionRead + type WebHookConfigRead struct + Active bool + ConditionId *int64 + CreatedAt time.Time + Id int64 + Name string + NeedNodeList []string + UpdatedAt time.Time + Url string + When *string + func GetAllWebhookConfigFromDB() []WebHookConfigRead + func GetWebhookConfigByIdFromDB(id int64) WebHookConfigRead + func ServiceAddWebhookConfig(req *AddWebhookConfigRequest) WebHookConfigRead + func ServiceGetWebhookConfigById(id string) WebHookConfigRead + type WebHookExampleRequest struct + TimeStamp int64 + Values map[string]interface{} + type WebHookExampleResponse struct + Code int + Data string + Message string