retrieve

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retrieve

type Retrieve struct {
	// ID of the resource to delete.
	ID string `json:"id" query:"id" param:"id" form:"id" validate:"required"`

	// Fields to be included in the response.
	Fields field.Fields `json:"fields" query:"fields" param:"fields" form:"fields" validate:"omitempty,gt=0"`

	// Any use this for cases where you need to pass something down to the
	// adapter.
	Any interface{} `json:"any" query:"any" param:"any" form:"any" validate:"omitempty,gt=0"`
}

Retrieve params.

SEE: https://echo.labstack.com/guide/binding/#data-sources on data binding.

func New

func New() (*Retrieve, error)

New creates a new param.

func (*Retrieve) Process

func (g *Retrieve) Process() error

Process the `default` -> `env` -> `validate` struct's fields tags.

NOTE: This function just for testing purpose.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL