client

package
v0.0.0-...-60c6a2d Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SizeProportionFocus

func SizeProportionFocus(n *xmlnode.XmlNode) (size int, proportion int, focus bool)

Types

type Button

type Button struct {
	// contains filtered or unexported fields
}

func (*Button) Node

func (b *Button) Node() *xmlnode.XmlNode

func (*Button) Update

func (b *Button) Update(n *xmlnode.XmlNode)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func CreateClient

func CreateClient(source string) (c *Client, err error)

func (*Client) CreateButton

func (client *Client) CreateButton(n *xmlnode.XmlNode, events chan *xmlnode.XmlNode) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive)

func (*Client) CreateFlexBox

func (client *Client) CreateFlexBox(n *xmlnode.XmlNode, allowRemote bool, events chan *xmlnode.XmlNode, children map[string]func(*xmlnode.XmlNode)) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive, f *FlexBox)

func (*Client) CreateForm

func (client *Client) CreateForm(n *xmlnode.XmlNode) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive)

func (*Client) CreateInputField

func (client *Client) CreateInputField(n *xmlnode.XmlNode, events chan *xmlnode.XmlNode) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive)

func (*Client) CreateItem

func (c *Client) CreateItem(
	n *xmlnode.XmlNode,
	events chan *xmlnode.XmlNode,
	allowRemote bool,
	children map[string]func(*xmlnode.XmlNode),
	ctx context.Context,
) (
	update func(*xmlnode.XmlNode),
	node func() *xmlnode.XmlNode,
	p tview.Primitive,
	f *FlexBox,
)

func (*Client) CreateLibp2p

func (client *Client) CreateLibp2p(n *xmlnode.XmlNode, ctx context.Context) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive)

func (*Client) CreateListView

func (client *Client) CreateListView(n *xmlnode.XmlNode, events chan *xmlnode.XmlNode) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive)

func (*Client) CreateText

func (client *Client) CreateText(n *xmlnode.XmlNode) (update func(*xmlnode.XmlNode), node func() *xmlnode.XmlNode, p tview.Primitive)

func (*Client) Debug

func (c *Client) Debug(state bool)

func (*Client) Start

func (c *Client) Start()

type FlexBox

type FlexBox struct {
	// contains filtered or unexported fields
}

func (FlexBox) Node

func (f FlexBox) Node() *xmlnode.XmlNode

func (*FlexBox) Update

func (f *FlexBox) Update(n *xmlnode.XmlNode)

type FlexBoxItem

type FlexBoxItem struct {
	// contains filtered or unexported fields
}

type Form

type Form struct {
}

type InputField

type InputField struct {
	// contains filtered or unexported fields
}

type Libp2p

type Libp2p struct {
	// contains filtered or unexported fields
}

func (*Libp2p) Close

func (l *Libp2p) Close()

func (*Libp2p) Error

func (l *Libp2p) Error(e string)

func (*Libp2p) Node

func (l *Libp2p) Node() *xmlnode.XmlNode

func (*Libp2p) Update

func (l *Libp2p) Update(node *xmlnode.XmlNode)

type ListView

type ListView struct {
	// contains filtered or unexported fields
}

func (*ListView) AddItems

func (l *ListView) AddItems(nodes []*xmlnode.XmlNode)

func (*ListView) ClearItems

func (l *ListView) ClearItems()

type Text

type Text struct {
	// contains filtered or unexported fields
}

func (*Text) Node

func (t *Text) Node() *xmlnode.XmlNode

func (*Text) Primitive

func (t *Text) Primitive() tview.Primitive

func (*Text) Update

func (t *Text) Update(node *xmlnode.XmlNode)

Jump to

Keyboard shortcuts

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