Documentation ¶
Index ¶
- Variables
- func TripleBacktickToCode(input string) string
- 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)
- type GlipMessageConverter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func TripleBacktickToCode ¶
TripleBacktickToCode converts markdown triple backticks to Glip code blocks.
Types ¶
type GlipAdapter ¶
type GlipAdapter struct { GlipClient glipwebhook.GlipWebhookClient CommonConverter GlipMessageConverter EmojiURLFormat string WebhookURLOrUID string }
func NewGlipAdapter ¶
func NewGlipAdapter(webhookURLOrUID string) (*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)
type GlipMessageConverter ¶
type GlipMessageConverter struct { EmojiURLFormat string ActivityIncludeIntegrationName bool UseAttachments bool // overrides other 'use' options UseMarkdownQuote bool UseShortFields bool UseFieldExtraSpacing bool EmojiConverter emoji.Converter ConvertTripleBacktick bool }
func NewGlipMessageConverter ¶
func NewGlipMessageConverter() GlipMessageConverter
func (*GlipMessageConverter) ConvertCommonMessage ¶
func (cv *GlipMessageConverter) ConvertCommonMessage(commonMessage cc.Message) glipwebhook.GlipWebhookMessage
Click to show internal directories.
Click to hide internal directories.