Documentation
¶
Overview ¶
Package actions provides the shared workbench button registry for native code and extensions. Mutations are thread safe; callbacks run on the UI thread.
Index ¶
- func Validate(a peb.Action) error
- type Definition
- type Registry
- func (r *Registry) Register(d Definition) error
- func (r *Registry) Remove(id string)
- func (r *Registry) RemovePrefix(prefix string)
- func (r *Registry) Run(c peb.ActionContext) error
- func (r *Registry) SetWake(wake func())
- func (r *Registry) Snapshot(dst []peb.Action, revision uint64) ([]peb.Action, uint64)
- func (r *Registry) Update(a peb.Action) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct {
Run func(peb.ActionContext) error
peb.Action
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) Register ¶
func (r *Registry) Register(d Definition) error
func (*Registry) RemovePrefix ¶
RemovePrefix removes an owner's buttons in a single pass.
Click to show internal directories.
Click to hide internal directories.