views

package
v0.0.0-...-f99326c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GetbookresponseMap is a map indexing the attribute names of Getbookresponse
	// by view name.
	GetbookresponseMap = map[string][]string{
		"default": {
			"id",
			"title",
			"author",
			"book_cover",
			"published_at",
		},
	}
	// GetbooksresponseMap is a map indexing the attribute names of
	// Getbooksresponse by view name.
	GetbooksresponseMap = map[string][]string{
		"default": {
			"books",
		},
	}
	// CreatebookresponseMap is a map indexing the attribute names of
	// Createbookresponse by view name.
	CreatebookresponseMap = map[string][]string{
		"default": {
			"id",
			"title",
			"author",
			"book_cover",
			"published_at",
		},
	}
	// UpdatebookresponseMap is a map indexing the attribute names of
	// Updatebookresponse by view name.
	UpdatebookresponseMap = map[string][]string{
		"default": {
			"id",
			"title",
			"author",
			"book_cover",
			"published_at",
		},
	}
	// ResultbookCollectionMap is a map indexing the attribute names of
	// ResultbookCollection by view name.
	ResultbookCollectionMap = map[string][]string{
		"default": {
			"id",
			"title",
			"author",
			"book_cover",
			"published_at",
		},
	}
	// ResultbookMap is a map indexing the attribute names of Resultbook by view
	// name.
	ResultbookMap = map[string][]string{
		"default": {
			"id",
			"title",
			"author",
			"book_cover",
			"published_at",
		},
	}
)

Functions

func ValidateCreatebookresponse

func ValidateCreatebookresponse(result *Createbookresponse) (err error)

ValidateCreatebookresponse runs the validations defined on the viewed result type Createbookresponse.

func ValidateCreatebookresponseView

func ValidateCreatebookresponseView(result *CreatebookresponseView) (err error)

ValidateCreatebookresponseView runs the validations defined on CreatebookresponseView using the "default" view.

func ValidateGetbookresponse

func ValidateGetbookresponse(result *Getbookresponse) (err error)

ValidateGetbookresponse runs the validations defined on the viewed result type Getbookresponse.

func ValidateGetbookresponseView

func ValidateGetbookresponseView(result *GetbookresponseView) (err error)

ValidateGetbookresponseView runs the validations defined on GetbookresponseView using the "default" view.

func ValidateGetbooksresponse

func ValidateGetbooksresponse(result *Getbooksresponse) (err error)

ValidateGetbooksresponse runs the validations defined on the viewed result type Getbooksresponse.

func ValidateGetbooksresponseView

func ValidateGetbooksresponseView(result *GetbooksresponseView) (err error)

ValidateGetbooksresponseView runs the validations defined on GetbooksresponseView using the "default" view.

func ValidateResultbookCollectionView

func ValidateResultbookCollectionView(result ResultbookCollectionView) (err error)

ValidateResultbookCollectionView runs the validations defined on ResultbookCollectionView using the "default" view.

func ValidateResultbookView

func ValidateResultbookView(result *ResultbookView) (err error)

ValidateResultbookView runs the validations defined on ResultbookView using the "default" view.

func ValidateUpdatebookresponse

func ValidateUpdatebookresponse(result *Updatebookresponse) (err error)

ValidateUpdatebookresponse runs the validations defined on the viewed result type Updatebookresponse.

func ValidateUpdatebookresponseView

func ValidateUpdatebookresponseView(result *UpdatebookresponseView) (err error)

ValidateUpdatebookresponseView runs the validations defined on UpdatebookresponseView using the "default" view.

Types

type Createbookresponse

type Createbookresponse struct {
	// Type to project
	Projected *CreatebookresponseView
	// View to render
	View string
}

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

type CreatebookresponseView

type CreatebookresponseView struct {
	// The unique id of the book.
	ID *int
	// The title of the book.
	Title *string
	// The author of the book.
	Author *string
	// The cover image of the book.
	BookCover *string
	// The date at which the book was published.
	PublishedAt *string
}

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

type Getbookresponse

type Getbookresponse struct {
	// Type to project
	Projected *GetbookresponseView
	// View to render
	View string
}

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

type GetbookresponseView

type GetbookresponseView struct {
	// The unique id of the book.
	ID *int
	// The title of the book.
	Title *string
	// The author of the book.
	Author *string
	// The cover image of the book.
	BookCover *string
	// The date at which the book was published.
	PublishedAt *string
}

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

type Getbooksresponse

type Getbooksresponse struct {
	// Type to project
	Projected *GetbooksresponseView
	// View to render
	View string
}

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

type GetbooksresponseView

type GetbooksresponseView struct {
	// List of paginated books.
	Books ResultbookCollectionView
}

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

type ResultbookCollectionView

type ResultbookCollectionView []*ResultbookView

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

type ResultbookView

type ResultbookView struct {
	// The unique id of the book.
	ID *int
	// The title of the book.
	Title *string
	// The author of the book.
	Author *string
	// The cover image of the book.
	BookCover *string
	// The date at which the book was published.
	PublishedAt *string
}

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

type Updatebookresponse

type Updatebookresponse struct {
	// Type to project
	Projected *UpdatebookresponseView
	// View to render
	View string
}

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

type UpdatebookresponseView

type UpdatebookresponseView struct {
	// The unique id of the book.
	ID *int
	// The title of the book.
	Title *string
	// The author of the book.
	Author *string
	// The cover image of the book.
	BookCover *string
	// The date at which the book was published.
	PublishedAt *string
}

UpdatebookresponseView 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