params

package
v1.2206.0-pre2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	Key   string    `json:"key"`
	Value string    `json:"value"`
	Desc  string    `json:"desc"`
	Type  ParamType `json:"type"`
}

func (*Param) Bool

func (r *Param) Bool() bool

func (*Param) Int

func (r *Param) Int() int

func (*Param) String

func (r *Param) String() string

type ParamType

type ParamType string
const (
	ParamTypeString ParamType = "string"
	ParamTypeInt    ParamType = "int"
	ParamTypeBool   ParamType = "bool"
)

type Params

type Params []*Param

func (*Params) Copy

func (r *Params) Copy() Params

func (*Params) GetParam

func (r *Params) GetParam(key string) *Param

func (*Params) Scan

func (r *Params) Scan(value interface{}) error

Scan impl sql.Scanner interface

func (*Params) SetParamValue

func (r *Params) SetParamValue(key, value string) error

func (Params) Value

func (r Params) Value() (driver.Value, error)

Value impl sql.driver.Valuer interface

Jump to

Keyboard shortcuts

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