Documentation ¶
Index ¶
- type GlipAdapter
- func (adapter *GlipAdapter) SendMessage(message commonchat.Message, glipmsg 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 EmojiURLFormat string WebhookURLOrUID string }
func NewGlipAdapter ¶
func NewGlipAdapter(webhookURLOrUID string, cfg *config.ConverterConfig) (*GlipAdapter, error)
func (*GlipAdapter) SendMessage ¶
func (adapter *GlipAdapter) SendMessage(message commonchat.Message, glipmsg interface{}) (*fasthttp.Request, *fasthttp.Response, error)
func (*GlipAdapter) SendWebhook ¶
func (adapter *GlipAdapter) SendWebhook(urlOrUid string, message commonchat.Message, glipmsg 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.