playground

package
v0.6.9-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const HTTP2_GOAWAY_CHECK = "http2: server sent GOAWAY and closed the connection"

Variables

This section is empty.

Functions

This section is empty.

Types

type Playground

type Playground struct {
	// *tview.Frame eventually?
	*tview.Flex
	// contains filtered or unexported fields
}

func New

func New(initialText string, scopeSourceConfig helpers.SourceConfig) *Playground

func (*Playground) Encode

func (V *Playground) Encode() (map[string]any, error)

func (*Playground) Focus

func (C *Playground) Focus(delegate func(p tview.Primitive))

func (*Playground) Mount

func (C *Playground) Mount(context map[string]any) error

func (*Playground) PushToPlayground

func (C *Playground) PushToPlayground() (string, error)

func (*Playground) Rebuild

func (C *Playground) Rebuild(rebuildScope bool) error

func (*Playground) SetFlexDirection

func (C *Playground) SetFlexDirection(dir int)

func (*Playground) SetScopeConfig

func (C *Playground) SetScopeConfig(sc helpers.SourceConfig)

func (*Playground) SetText

func (C *Playground) SetText(s string)

func (*Playground) TypeName

func (*Playground) TypeName() string

func (*Playground) UseScope

func (C *Playground) UseScope(visible bool)

Jump to

Keyboard shortcuts

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