views

package
v0.0.0-...-0250c29 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StationNotesMap is a map indexing the attribute names of StationNotes by
	// view name.
	StationNotesMap = map[string][]string{
		"default": {
			"notes",
		},
	}
	// StationNoteMap is a map indexing the attribute names of StationNote by view
	// name.
	StationNoteMap = map[string][]string{
		"default": {
			"id",
			"createdAt",
			"updatedAt",
			"author",
			"body",
		},
	}
)

Functions

func ValidateStationNote

func ValidateStationNote(result *StationNote) (err error)

ValidateStationNote runs the validations defined on the viewed result type StationNote.

func ValidateStationNoteAuthorPhotoView

func ValidateStationNoteAuthorPhotoView(result *StationNoteAuthorPhotoView) (err error)

ValidateStationNoteAuthorPhotoView runs the validations defined on StationNoteAuthorPhotoView.

func ValidateStationNoteAuthorView

func ValidateStationNoteAuthorView(result *StationNoteAuthorView) (err error)

ValidateStationNoteAuthorView runs the validations defined on StationNoteAuthorView.

func ValidateStationNoteView

func ValidateStationNoteView(result *StationNoteView) (err error)

ValidateStationNoteView runs the validations defined on StationNoteView using the "default" view.

func ValidateStationNotes

func ValidateStationNotes(result *StationNotes) (err error)

ValidateStationNotes runs the validations defined on the viewed result type StationNotes.

func ValidateStationNotesView

func ValidateStationNotesView(result *StationNotesView) (err error)

ValidateStationNotesView runs the validations defined on StationNotesView using the "default" view.

Types

type StationNote

type StationNote struct {
	// Type to project
	Projected *StationNoteView
	// View to render
	View string
}

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

type StationNoteAuthorPhotoView

type StationNoteAuthorPhotoView struct {
	URL *string
}

StationNoteAuthorPhotoView is a type that runs validations on a projected type.

type StationNoteAuthorView

type StationNoteAuthorView struct {
	ID    *int32
	Name  *string
	Photo *StationNoteAuthorPhotoView
}

StationNoteAuthorView is a type that runs validations on a projected type.

type StationNoteView

type StationNoteView struct {
	ID        *int32
	CreatedAt *int64
	UpdatedAt *int64
	Author    *StationNoteAuthorView
	Body      *string
}

StationNoteView is a type that runs validations on a projected type.

type StationNotes

type StationNotes struct {
	// Type to project
	Projected *StationNotesView
	// View to render
	View string
}

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

type StationNotesView

type StationNotesView struct {
	Notes []*StationNoteView
}

StationNotesView 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