pubsub

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleasePubSub

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

func NewReleasePubSub

func NewReleasePubSub() *ReleasePubSub

NewReleasePubSub creates new PubSub structure.

func (*ReleasePubSub) PublishFailed

func (ps *ReleasePubSub) PublishFailed(release uniqname.UniqName)

PublishFailed publishes failed notification for all subscribers.

func (*ReleasePubSub) PublishSuccess

func (ps *ReleasePubSub) PublishSuccess(release uniqname.UniqName)

PublishSuccess publishes success notification for all subscribers.

func (*ReleasePubSub) Subscribe

func (ps *ReleasePubSub) Subscribe(release uniqname.UniqName) <-chan ReleaseStatus

Subscribe adds new subscription for defined key and returns notification channel.

type ReleaseStatus

type ReleaseStatus int
const (
	ReleaseSuccess ReleaseStatus = iota
	ReleaseFailed
)

Jump to

Keyboard shortcuts

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