operations

package
v0.0.0-...-9791e59 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegistryHost1Key = "registry-host1"
	RegistryHost2Key = "registry-host2"
)

Origin map and host keys

View Source
const (
	NamespaceName = "sql:postgres:agent/operations/postgres"
)

Variables

View Source
var (
	Agent messaging.Agent
)
View Source
var Serve = func() *Service {
	return &Service{
		Message: func(msg *messaging.Message) bool {
			return true
		},
		Advise: func(msg *messaging.Message) *messaging.Status {
			return messaging.StatusOK()
		},
		SubscriptionCreate: func(msg *messaging.Message) {
		},
		SubscriptionCancel: func(msg *messaging.Message) {
		},
		Trace: func(name, task, observation, action string) {
		},
	}
}()

Serve -

Functions

func Startup

func Startup(msg *messaging.Message)

Types

type Service

type Service struct {
	Message func(msg *messaging.Message) bool
	Advise  func(msg *messaging.Message) *messaging.Status
	Trace   func(name, task, observation, action string)

	SubscriptionCreate func(msg *messaging.Message)
	SubscriptionCancel func(msg *messaging.Message)
}

Service - in the real world

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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