crud

package
v0.0.0-...-18b760a Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: GPL-3.0 Imports: 6 Imported by: 4

Documentation

Overview

Package crud provides tools to accept data from a server request or the environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrudField

type CrudField struct {
	Value   string
	Updated bool
}

type NameCrud

type NameCrud struct {
	Address    CrudField
	Name       CrudField
	Tags       CrudField
	Source     CrudField
	Symbol     CrudField
	Decimals   CrudField
	Deleted    CrudField
	IsContract CrudField
	IsCustom   CrudField
	IsErc20    CrudField
	IsErc721   CrudField
	IsPrefund  CrudField
	Prefund    CrudField
	Parts      CrudField
}

func CrudFromName

func CrudFromName(name types.Name) *NameCrud

func NewNameCrud

func NewNameCrud(requireName bool, r *http.Request) (*NameCrud, error)

func (*NameCrud) SetEnv

func (cd *NameCrud) SetEnv()

func (*NameCrud) Unsetenv

func (cd *NameCrud) Unsetenv()

func (*NameCrud) Validate

func (cd *NameCrud) Validate(requireName bool) error

type Operation

type Operation string
const (
	Create   Operation = "create"
	Update   Operation = "update"
	Delete   Operation = "delete"
	Undelete Operation = "undelete"
	Remove   Operation = "remove"
	Autoname Operation = "autoname"
)

func OpFromString

func OpFromString(op string) Operation

Jump to

Keyboard shortcuts

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