Help us shape the future of Go! Take the 2026 Go Developer Survey

views

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CatalogMap is a map indexing the attribute names of Catalog by view name.
	CatalogMap = map[string][]string{
		"min": {
			"id",
			"name",
			"type",
		},
		"default": {
			"id",
			"name",
			"type",
			"url",
			"provider",
		},
	}
)

Functions

func ValidateCatalogView

func ValidateCatalogView(result *CatalogView) (err error)

ValidateCatalogView runs the validations defined on CatalogView using the "default" view.

func ValidateCatalogViewMin

func ValidateCatalogViewMin(result *CatalogView) (err error)

ValidateCatalogViewMin runs the validations defined on CatalogView using the "min" view.

Types

type CatalogView

type CatalogView struct {
	// ID is the unique id of the catalog
	ID *uint
	// Name of catalog
	Name *string
	// Type of catalog
	Type *string
	// URL of catalog
	URL *string
	// Provider of catalog
	Provider *string
}

CatalogView 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