views

package
v0.0.0-...-998107f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RestratingRrnMap is a map of attribute names in result type RestratingRrn
	// indexed by view name.
	RestratingRrnMap = map[string][]string{
		"default": []string{
			"rrn",
		},
	}
)

Functions

func ValidateRestratingRrn

func ValidateRestratingRrn(result *RestratingRrn) (err error)

ValidateRestratingRrn runs the validations defined on the viewed result type RestratingRrn.

func ValidateRestratingRrnView

func ValidateRestratingRrnView(result *RestratingRrnView) (err error)

ValidateRestratingRrnView runs the validations defined on RestratingRrnView using the "default" view.

Types

type RestratingRrn

type RestratingRrn struct {
	// Type to project
	Projected *RestratingRrnView
	// View to render
	View string
}

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

type RestratingRrnView

type RestratingRrnView struct {
	// Rating Resource Name
	Rrn *string
}

RestratingRrnView 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