statusnotifyserver

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatusParameters

func GetStatusParameters(reg *pb.StatusRegistration) (string, string, []string, []string, []string)

GetStatusParameters retrieves the status query parameters from the StatusRegistration

Types

type StatusNotifyServer

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

StatusNotifyServer will be initialized by NewStatusNotifyServer() and its lifecycle is valid until all the clients unsubscribed the stream notification channel

func NewStatusNotifyServer

func NewStatusNotifyServer(readyNotifyClientID string, sh StatusNotifyServerHelpers) *StatusNotifyServer

NewStatusNotifyServer will create a new StatusNotifyServer and destroys the previous one

func (*StatusNotifyServer) StatusDeregister

StatusDeregister will be called when the subscriber wants to terminate the stream

func (*StatusNotifyServer) StatusRegister

StatusRegister gets notified when a client registers for a status notification stream for a given resource

type StatusNotifyServerHelpers

type StatusNotifyServerHelpers interface {
	GetAppContextId(ctx context.Context, reg *pb.StatusRegistration) (string, error)
	StatusQuery(ctx context.Context, reg *pb.StatusRegistration, qInstance, qType, qOutput string, qApps, qClusters, qResources []string) status.StatusResult
	PrepareStatusNotification(reg *pb.StatusRegistration, statusResult status.StatusResult) *pb.StatusNotification
}

StatusNotifyServerHelpers is an interface supported by the specific microservices that need to provide status notification

Jump to

Keyboard shortcuts

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