notification

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownTopicType = errors.New("unknown topic type")
)

Functions

This section is empty.

Types

type ExecutionMessage

type ExecutionMessage struct {
	WorkflowName string `json:"workflowName"`
	ExecutionId  string `json:"executionId"`
	Status       string `json:"status"`
	Results      string `json:"results"`
}

func DeserializeExecutionMessage

func DeserializeExecutionMessage(b []byte) (ExecutionMessage, error)

func (ExecutionMessage) Serialize

func (e ExecutionMessage) Serialize() (string, error)

type Topic

type Topic struct {
	TopicType     TopicType
	TopicEndpoint TopicEndpoint
}

func NewTopic

func NewTopic(topicType TopicType, topicEndpoint TopicEndpoint) Topic

type TopicEndpoint

type TopicEndpoint string

func TopicEndpointFromString

func TopicEndpointFromString(s string) (TopicEndpoint, error)

func (TopicEndpoint) String

func (x TopicEndpoint) String() string

type TopicType

type TopicType int
const (
	TopicTypeUnknown TopicType = iota
	TopicTypeSns
	TopicTypeMqtt
)

func TopicTypeFromString

func TopicTypeFromString(s string) (TopicType, error)

func (TopicType) String

func (x TopicType) String() string

Jump to

Keyboard shortcuts

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