glip

package
v0.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

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

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

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)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL