Documentation ¶
Index ¶
- type GlipAdapter
- func (adapter *GlipAdapter) Clone() (*GlipAdapter, error)
- func (adapter *GlipAdapter) SendMessage(message commonchat.Message, glipmsg interface{}, opts map[string]interface{}) (*fasthttp.Request, *fasthttp.Response, error)
- func (adapter *GlipAdapter) SendWebhook(urlOrUid string, message commonchat.Message, glipmsg interface{}, ...) (*fasthttp.Request, *fasthttp.Response, error)
- func (adapter *GlipAdapter) WebhookUID(ctx *fasthttp.RequestCtx) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlipAdapter ¶
type GlipAdapter struct { GlipClient glipwebhook.GlipWebhookClient CommonConverter classic.GlipMessageConverter WebhookURLOrUID string }
func NewGlipAdapter ¶
func NewGlipAdapter(webhookURLOrUID string, cfg *config.ConverterConfig) (*GlipAdapter, error)
func NewGlipAdapterMSI ¶ added in v0.2.0
func NewGlipAdapterMSI(webhookURLOrUID string, cfg map[string]interface{}) (*GlipAdapter, error)
func (*GlipAdapter) Clone ¶ added in v0.2.0
func (adapter *GlipAdapter) Clone() (*GlipAdapter, error)
func (*GlipAdapter) SendMessage ¶
func (adapter *GlipAdapter) SendMessage(message commonchat.Message, glipmsg interface{}, opts map[string]interface{}) (*fasthttp.Request, *fasthttp.Response, error)
func (*GlipAdapter) SendWebhook ¶
func (adapter *GlipAdapter) SendWebhook(urlOrUid string, message commonchat.Message, glipmsg interface{}, cfg map[string]interface{}) (*fasthttp.Request, *fasthttp.Response, error)
func (*GlipAdapter) WebhookUID ¶
func (adapter *GlipAdapter) WebhookUID(ctx *fasthttp.RequestCtx) (string, error)
Click to show internal directories.
Click to hide internal directories.