Documentation ¶
Index ¶
- Constants
- func Process(msg *message.Message) error
- func PublishEventDeployment(namespaceId int64, appId int64, user string, ip string, action Action, ...)
- func PublishEventIngress(namespaceId int64, appId int64, user string, ip string, action Action, ...)
- func PublishEventMember(namespaceId int64, appId int64, user string, ip string, action Action, ...)
- func PublishEventService(namespaceId int64, appId int64, user string, ip string, action Action, ...)
- func RegisterHookHandler() error
- type Action
- type ClientPool
- type EventDeploymentPayload
- type EventIngressPayload
- type EventMemberPayload
- type EventServicePayload
- type Request
- type WebhookWorker
Constants ¶
View Source
const ( MaxIdleConns int = 100 MaxIdleConnsPerHost int = 100 IdleConnTimeout int = 60 )
View Source
const EventName = "webhook"
View Source
const QueueWebhook = "webhook"
Variables ¶
This section is empty.
Functions ¶
func PublishEventDeployment ¶
func PublishEventIngress ¶
func PublishEventMember ¶
func PublishEventService ¶
func RegisterHookHandler ¶
func RegisterHookHandler() error
Types ¶
type Action ¶
type Action string
const ( AddMember Action = "AddMember" DeleteMember Action = "DeleteMember" UpdateMember Action = "UpdateMember" UpgradeDeployment Action = "UpgradeDeployment" DeleteDeployment Action = "OfflineDeployment" OnlineService Action = "OnlineService" OfflineService Action = "OfflineService" OnlineIngress Action = "OnlineIngress" OfflineIngress Action = "OfflineIngress" )
type ClientPool ¶
type EventDeploymentPayload ¶
type EventIngressPayload ¶
type EventMemberPayload ¶
type EventServicePayload ¶
type WebhookWorker ¶
type WebhookWorker struct { *workers.BaseMessageWorker ClientPool *ClientPool }
func NewWebhookWorker ¶
func NewWebhookWorker(b *bus.Bus) (*WebhookWorker, error)
Click to show internal directories.
Click to hide internal directories.