tsrecorder

package
v1.73.0-pre Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: BSD-3-Clause Imports: 7 Imported by: 3

Documentation

Overview

Package tsrecorder contains functionality for connecting to a tsrecorder instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

recorder knows how to send the provided bytes to the configured tsrecorder instance in asciinema format.

func New

func New(conn io.WriteCloser, clock tstime.Clock, start time.Time, failOpen bool) *Client

func (*Client) Close

func (rec *Client) Close() error

func (*Client) Write

func (rec *Client) Write(p []byte) (err error)

Write appends timestamp to the provided bytes and sends them to the configured tsrecorder.

func (*Client) WriteCastLine

func (c *Client) WriteCastLine(j []byte) error

writeCastLine sends bytes to the tsrecorder. The bytes should be in asciinema format.

type ResizeMsg

type ResizeMsg struct {
	Width  int `json:"width"`
	Height int `json:"height"`
}

Jump to

Keyboard shortcuts

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