qualify

package
v0.4.40 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Qualification

type Qualification struct {
	Action *action.Action `json:"act"`
	Icon   string         `json:"icon,omitempty"`
	Path   []string       `json:"path"`
	Debug  string         `json:"debug,omitempty"`
}

func (*Qualification) Help

func (q *Qualification) Help() string
func (q *Qualification) Link() []string

func (*Qualification) String

func (q *Qualification) String() string

type Qualifications

type Qualifications []*Qualification

func Handle

func Handle(rel *model.Relationship, act *action.Action, wr *cutil.WorkspaceRequest, m *model.Model, result []any) (Qualifications, error)

func Qualify

func Qualify(req *Request, acts action.Actions, schemata schema.Schemata) (Qualifications, error)

type Request

type Request struct {
	Type   string        `json:"type"`
	Action string        `json:"action,omitempty"`
	Params util.ValueMap `json:"params,omitempty"`
}

func NewRequest

func NewRequest(t string, a string, params ...any) *Request

Jump to

Keyboard shortcuts

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