views

package
v0.0.0-...-d2cf98a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SavedBookmarkMap is a map of attribute names in result type SavedBookmark
	// indexed by view name.
	SavedBookmarkMap = map[string][]string{
		"default": []string{
			"url",
			"bookmark",
			"token",
		},
	}
)

Functions

func ValidateSavedBookmark

func ValidateSavedBookmark(result *SavedBookmark) (err error)

ValidateSavedBookmark runs the validations defined on the viewed result type SavedBookmark.

func ValidateSavedBookmarkView

func ValidateSavedBookmarkView(result *SavedBookmarkView) (err error)

ValidateSavedBookmarkView runs the validations defined on SavedBookmarkView using the "default" view.

Types

type SavedBookmark

type SavedBookmark struct {
	// Type to project
	Projected *SavedBookmarkView
	// View to render
	View string
}

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

type SavedBookmarkView

type SavedBookmarkView struct {
	URL      *string
	Bookmark *string
	Token    *string
}

SavedBookmarkView 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