delete

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

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

	// Soft delete if specified.
	Soft bool `default:"false" form:"soft" json:"soft" param:"soft" query:"soft"`

	// Target to delete.
	Target string `form:"target" json:"target" param:"target" query:"target"`
}

Delete params.

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

func New

func New() (*Delete, error)

New creates a new param.

func (*Delete) Process

func (s *Delete) 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