busbridge

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBridgePayload

func FromBridgePayload(payload string) (rmsg *msg.SzenarioEvtMsg, err error)

FromBridgePayload converts from bridge payload

func ToBridgePayload

func ToBridgePayload(msg *msg.SzenarioEvtMsg) (string, error)

ToBridgePayload converts to bridge payload

Types

type BrigeMsg

type BrigeMsg struct {
	Type        string
	Src         uuid.UUID
	JSONPayload []byte
}

BrigeMsg is used to encapsulate eventbus messages when sending over a bridge

type Slack

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

Slack bridges the eventbus over slack

func NewSlack

func NewSlack(ctx context.Context, hcl hcl.Logger, oAuth string, appLevelToken string) (*Slack, error)

NewSlack creates a new slack event bridge

func (Slack) Send

func (s Slack) Send(evt *msg.SzenarioEvtMsg) error

Send messge to the bridge

Jump to

Keyboard shortcuts

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