params

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 4 Imported by: 0

README

params

Package params is a thread-safe map data structure used as a key-value store for all nodes in cy's node tree.

Documentation

Overview

Code generated by gen.go; DO NOT EDIT.

Index

Constants

View Source
const (
	ParamAnimate       = "animate"
	ParamAnimations    = "animations"
	ParamDataDirectory = "data-directory"
	ParamDefaultFrame  = "default-frame"
	ParamDefaultShell  = "default-shell"
	ParamSkipInput     = "---skip-input"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultParam added in v0.2.0

type DefaultParam struct {
	Name      string
	Docstring string
	Default   interface{}
}

func DefaultParams added in v0.2.0

func DefaultParams() []DefaultParam

type Parameters

type Parameters struct {
	deadlock.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Parameters

func (*Parameters) Animate added in v0.2.0

func (p *Parameters) Animate() bool

func (*Parameters) Animations added in v0.2.0

func (p *Parameters) Animations() []string

func (*Parameters) DataDirectory added in v0.2.0

func (p *Parameters) DataDirectory() string

func (*Parameters) DefaultFrame added in v0.2.0

func (p *Parameters) DefaultFrame() string

func (*Parameters) DefaultShell added in v0.2.0

func (p *Parameters) DefaultShell() string

func (*Parameters) Get

func (p *Parameters) Get(key string) (value interface{}, ok bool)

func (*Parameters) NewChild

func (p *Parameters) NewChild() *Parameters

func (*Parameters) Set

func (p *Parameters) Set(key string, value interface{}) error

func (*Parameters) SetAnimate added in v0.2.0

func (p *Parameters) SetAnimate(value bool)

func (*Parameters) SetAnimations added in v0.2.0

func (p *Parameters) SetAnimations(value []string)

func (*Parameters) SetDataDirectory added in v0.2.0

func (p *Parameters) SetDataDirectory(value string)

func (*Parameters) SetDefaultFrame added in v0.2.0

func (p *Parameters) SetDefaultFrame(value string)

func (*Parameters) SetDefaultShell added in v0.2.0

func (p *Parameters) SetDefaultShell(value string)

func (*Parameters) SetParent

func (p *Parameters) SetParent(parent *Parameters)

func (*Parameters) SetSkipInput added in v0.2.0

func (p *Parameters) SetSkipInput(value bool)

func (*Parameters) SkipInput added in v0.2.0

func (p *Parameters) SkipInput() bool

Jump to

Keyboard shortcuts

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