views

package
v0.0.0-...-38fd44a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RandResultMap is a map indexing the attribute names of RandResult by view
	// name.
	RandResultMap = map[string][]string{
		"default": {
			"result",
		},
	}
)

Functions

func ValidateRandResult

func ValidateRandResult(result *RandResult) (err error)

ValidateRandResult runs the validations defined on the viewed result type RandResult.

func ValidateRandResultView

func ValidateRandResultView(result *RandResultView) (err error)

ValidateRandResultView runs the validations defined on RandResultView using the "default" view.

Types

type RandResult

type RandResult struct {
	// Type to project
	Projected *RandResultView
	// View to render
	View string
}

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

type RandResultView

type RandResultView struct {
	Result *int64
}

RandResultView 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