server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 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
	*mux.UpdatePublisher
	// 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) Kill added in v0.2.0

func (c *Client) Kill()

func (*Client) Resize

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

func (*Client) Screen

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

func (*Client) Send added in v0.1.6

func (c *Client) Send(msg mux.Msg)

func (*Client) Size

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

func (*Client) State

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

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