views

package
v0.0.0-...-882aa90 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HealthMap is a map indexing the attribute names of Health by view name.
	HealthMap = map[string][]string{
		"default": {
			"queue",
		},
	}
	// BackupCheckMap is a map indexing the attribute names of BackupCheck by view
	// name.
	BackupCheckMap = map[string][]string{
		"default": {
			"deviceName",
			"deviceId",
			"generationId",
			"records",
			"errors",
		},
	}
)

Functions

func ValidateBackupCheck

func ValidateBackupCheck(result *BackupCheck) (err error)

ValidateBackupCheck runs the validations defined on the viewed result type BackupCheck.

func ValidateBackupCheckView

func ValidateBackupCheckView(result *BackupCheckView) (err error)

ValidateBackupCheckView runs the validations defined on BackupCheckView using the "default" view.

func ValidateHealth

func ValidateHealth(result *Health) (err error)

ValidateHealth runs the validations defined on the viewed result type Health.

func ValidateHealthView

func ValidateHealthView(result *HealthView) (err error)

ValidateHealthView runs the validations defined on HealthView using the "default" view.

func ValidateQueueHealthView

func ValidateQueueHealthView(result *QueueHealthView) (err error)

ValidateQueueHealthView runs the validations defined on QueueHealthView.

Types

type BackupCheck

type BackupCheck struct {
	// Type to project
	Projected *BackupCheckView
	// View to render
	View string
}

BackupCheck is the viewed result type that is projected based on a view.

type BackupCheckView

type BackupCheckView struct {
	DeviceName   *string
	DeviceID     *string
	GenerationID *string
	Records      []int32
	Errors       []string
}

BackupCheckView is a type that runs validations on a projected type.

type Health

type Health struct {
	// Type to project
	Projected *HealthView
	// View to render
	View string
}

Health is the viewed result type that is projected based on a view.

type HealthView

type HealthView struct {
	Queue *QueueHealthView
}

HealthView is a type that runs validations on a projected type.

type QueueHealthView

type QueueHealthView struct {
	Pending *int64
	Errors  *int64
}

QueueHealthView is a type that runs validations on a projected type.

Jump to

Keyboard shortcuts

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