rainbond: github.com/goodrain/rainbond/eventlog/exit/webhook Index | Files

package webhook

import "github.com/goodrain/rainbond/eventlog/exit/webhook"

Index

Package Files

manager.go

Constants

const UpDateEventStatus = "console_update_event_status"
const UpdateEventCodeVersion = "console_update_event_code_version"

func InitManager Uses

func InitManager(conf conf.WebHookConf, log *logrus.Entry) error

type Manager Uses

type Manager struct {
    // contains filtered or unexported fields
}

func GetManager Uses

func GetManager() *Manager

func (*Manager) GetWebhook Uses

func (m *Manager) GetWebhook(name string) *WebHook

func (*Manager) Regist Uses

func (m *Manager) Regist(w *WebHook)

Regist 注册

func (*Manager) RunWebhook Uses

func (m *Manager) RunWebhook(name string, body []byte)

func (*Manager) RunWebhookWithParameter Uses

func (m *Manager) RunWebhookWithParameter(name string, body []byte, parameter map[string]interface{})

type WebHook Uses

type WebHook struct {
    EndPoint         string
    RequestParameter map[string]interface{}
    RequestBody      []byte
    RequestHeader    map[string]string
    Name             string
    Method           string
}

func (*WebHook) Run Uses

func (w *WebHook) Run() error

Run 执行

Package webhook imports 9 packages (graph) and is imported by 1 packages. Updated 2018-05-05. Refresh now. Tools for package owners.