dictionary

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name        string      `yaml:"name"`
	Handle      string      `yaml:"handle"`
	Description string      `yaml:"description"`
	Expressions []string    `yaml:"expressions"`
	Parameters  []Parameter `yaml:"parameters"`
	Examples    []string    `yaml:"examples"`
}

func (*Action) Expr

func (a *Action) Expr() []string

func (*Action) Param

func (a *Action) Param(name string) *Parameter

type Dictionary

type Dictionary struct {
	Handlers []Handler `yaml:"handlers"`
}
var (
	Base Dictionary
)

func Retrieve

func Retrieve(filepath string) (*Dictionary, error)

type Handler

type Handler struct {
	Name        string   `yaml:"name"`
	Resources   []string `yaml:"resources"`
	Description string   `yaml:"description"`
	Options     []Option `yaml:"options"`
	Actions     []Action `yaml:"actions"`
}

func (*Handler) Action

func (r *Handler) Action(name string) *Action

type Option

type Option struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
}

type Parameter

type Parameter struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Type        string `yaml:"type"`
}

type Type

type Type struct {
	Expression string `yaml:"expression"`
}

Jump to

Keyboard shortcuts

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