model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRequestContext

func SetRequestContext(c *echo.Context, value any)

Types

type ContextKey

type ContextKey string
const REQUEST_CONTEXT_KEY ContextKey = "request_context"

type DataMap

type DataMap map[string]interface{}

func (*DataMap) GetIntByKey

func (d *DataMap) GetIntByKey(key string) int

func (*DataMap) GetListByKey

func (d *DataMap) GetListByKey(key string) []string

func (*DataMap) GetStringByKey

func (d *DataMap) GetStringByKey(key string) string

func (*DataMap) GetTimeByKey

func (d *DataMap) GetTimeByKey(key string) string

func (*DataMap) Has

func (r *DataMap) Has(key string) bool

func (DataMap) Marshal

func (r DataMap) Marshal() ([]byte, error)

func (*DataMap) Scan

func (c *DataMap) Scan(value interface{}) error

func (DataMap) StripEmpty

func (d DataMap) StripEmpty() DataMap

func (*DataMap) ToDataMapReadable

func (r *DataMap) ToDataMapReadable() *DataMapReadable

func (*DataMap) Unmarshal

func (r *DataMap) Unmarshal(value interface{}) error

func (DataMap) Value

func (c DataMap) Value() (driver.Value, error)

type DataMapReadable

type DataMapReadable map[string]string

func (*DataMapReadable) GetStringByKey

func (d *DataMapReadable) GetStringByKey(key string) string

type KeyValuePair

type KeyValuePair struct {
	Key   string
	Value string
}

type Mapper

type Mapper interface {
	IsEmpty() bool
	ToKey() string
	ToName() string
	ToIdentifier() string
	ToDataMap() *DataMap
	ToData() []UniversalSubMapper
}

type RequestContext

type RequestContext struct {
	Url       string `json:"url"`
	HxRequest bool   `json:"hx_request"`
}

func GetRequestContext

func GetRequestContext(c interface{}) RequestContext

type TableRow

type TableRow struct {
	RID uuid.UUID
	Row Mapper
}

type TableRows

type TableRows []TableRow

type Task

type Task struct {
	ID                   int             `json:"id"`
	RID                  uuid.UUID       `json:"rid"`
	Key                  string          `json:"key"`
	Name                 string          `json:"name"`
	Description          string          `json:"description"`
	InputParameters      []vm.Validation `json:"input_parameters"`
	InputParametersKeyed []vm.Validation `json:"input_parameters_keyed"`
	OutputParameters     []vm.Validation `json:"output_parameters"`
	CreatedAt            time.Time       `json:"created_at"`
	UpdatedAt            time.Time       `json:"updated_at"`
}

Task represents a task configuration in the database

type UniversalMapper

type UniversalMapper struct {
	Data []UniversalSubMapper
}

func (UniversalMapper) IsEmpty

func (u UniversalMapper) IsEmpty() bool

func (UniversalMapper) ToData

func (u UniversalMapper) ToData() []UniversalSubMapper

func (UniversalMapper) ToDataMap

func (u UniversalMapper) ToDataMap() *DataMap

func (UniversalMapper) ToIdentifier

func (u UniversalMapper) ToIdentifier() string

func (UniversalMapper) ToKey

func (u UniversalMapper) ToKey() string

func (UniversalMapper) ToName

func (u UniversalMapper) ToName() string

type UniversalSubMapper

type UniversalSubMapper struct {
	Key      string
	Data     any
	Link     string
	ViewType string
}

Jump to

Keyboard shortcuts

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