notification

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 Endpoint added in v0.0.10

type Endpoint string

func EndpointFromString added in v0.0.10

func EndpointFromString(e string) (Endpoint, error)

func (Endpoint) String added in v0.0.10

func (i Endpoint) String() string

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 Identifier added in v0.0.10

type Identifier string

func IdentifierFromString added in v0.0.10

func IdentifierFromString(id string) (Identifier, error)

func (Identifier) String added in v0.0.10

func (i Identifier) String() string

type Notifier added in v0.0.10

type Notifier struct {
	Name     Identifier
	Type     TopicType
	Endpoint Endpoint
}

func NewNotifier added in v0.0.10

func NewNotifier(name Identifier, topicType TopicType, endpoint Endpoint) *Notifier

func NewNotifierFromPrimitive added in v0.0.10

func NewNotifierFromPrimitive(name string, topicType string, endpoint string) (*Notifier, 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