client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(method string, reply any, arg any) error

func GetClient

func GetClient(orStart bool) *surpc.Client

func Stream

func Stream[T any](path string, reply any) (<-chan T, error)

Types

type Tasklist added in v0.2.1

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

func NewTasklist added in v0.2.1

func NewTasklist(fetch func() ([]session.RpcJobInfo, error)) *Tasklist

func (*Tasklist) Init added in v0.2.1

func (m *Tasklist) Init() tea.Cmd

func (*Tasklist) Update added in v0.2.1

func (m *Tasklist) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Tasklist) View added in v0.2.1

func (m *Tasklist) View() string

Jump to

Keyboard shortcuts

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