Documentation
¶
Index ¶
- Variables
- func ValidateBackupCheck(result *BackupCheck) (err error)
- func ValidateBackupCheckView(result *BackupCheckView) (err error)
- func ValidateHealth(result *Health) (err error)
- func ValidateHealthView(result *HealthView) (err error)
- func ValidateQueueHealthView(result *QueueHealthView) (err error)
- type BackupCheck
- type BackupCheckView
- type Health
- type HealthView
- type QueueHealthView
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
QueueHealthView is a type that runs validations on a projected type.