server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Attach

func (c *Client) Attach(ctx context.Context, screen mux.Screen)

func (*Client) Attachment added in v0.1.1

func (c *Client) Attachment() *util.Lifetime

func (*Client) Resize

func (c *Client) Resize(size mux.Size) error

func (*Client) Screen

func (c *Client) Screen() mux.Screen

func (*Client) Size

func (c *Client) Size() mux.Size

func (*Client) State

func (c *Client) State() *tty.State

func (*Client) Updates

func (c *Client) Updates() *mux.Updater

func (*Client) Write

func (c *Client) Write(data []byte) (n int, err error)

type Server

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

func New

func New() *Server

func (*Server) AddClient

func (s *Server) AddClient(
	ctx context.Context,
	initialSize mux.Size,
) *Client

Jump to

Keyboard shortcuts

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