rendered

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusType

type BusType struct {
	util.Singleton[VersionManager]
}
var Bus BusType

func (*BusType) Initialize

func (b *BusType) Initialize(ctx context.Context,
	kvStore kvstore.KVStore,
	provider queues.Provider,
	renderedWaitTimeout time.Duration,
	log logrus.FieldLogger) error

type Publisher

type Publisher interface {
	Publish(ctx context.Context, orgId uuid.UUID, name string, renderedVersion string) error
}

func NewBroadcaster

func NewBroadcaster(ctx context.Context, queuesProvider queues.Provider) (Publisher, error)

type Subscriber

type Subscriber interface {
	Subscribe(ctx context.Context, handler func(ctx context.Context, orgId uuid.UUID, name string, renderedVersion string) error) error
}

func NewSubscriber

func NewSubscriber(ctx context.Context, queuesProvider queues.Provider) (Subscriber, error)

type VersionManager

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

func (*VersionManager) Start

func (m *VersionManager) Start(ctx context.Context) error

func (*VersionManager) StoreAndNotify

func (m *VersionManager) StoreAndNotify(ctx context.Context, orgId uuid.UUID, name string, renderedVersion string) error

func (*VersionManager) WaitForNewVersion

func (m *VersionManager) WaitForNewVersion(ctx context.Context, orgId uuid.UUID, name string, knownRenderedVersion string) (bool, string, error)

Jump to

Keyboard shortcuts

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