server

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStartingRecordingSession = errors.New("failed to start recording session")

Functions

This section is empty.

Types

type Client added in v0.7.3

type Client interface {
	Send(msg string) error
}

func NewDefaultClient added in v0.7.3

func NewDefaultClient(ctx context.Context) (Client, error)

type Option added in v0.7.6

type Option func(*UnixSocketServer)

func WithCommandRecordedHook added in v0.7.6

func WithCommandRecordedHook(hook func(string)) Option

type UnixSocketServer

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

func NewUnixSocketServer

func NewUnixSocketServer(socketPath string, opts ...Option) (*UnixSocketServer, error)

func NewUnixSocketServerWithDefaultPath added in v0.7.3

func NewUnixSocketServerWithDefaultPath(opts ...Option) (*UnixSocketServer, error)

func (*UnixSocketServer) Close

func (s *UnixSocketServer) Close() error

func (*UnixSocketServer) Commands

func (s *UnixSocketServer) Commands() []string

func (*UnixSocketServer) ListenAndServe

func (s *UnixSocketServer) ListenAndServe()

func (*UnixSocketServer) SocketPath added in v0.7.3

func (s *UnixSocketServer) SocketPath() string

Jump to

Keyboard shortcuts

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